8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5198ae8 commit 95203e0Copy full SHA for 95203e0
src/tools/copyright.pl
@@ -48,12 +48,10 @@ sub wanted
48
# We only care about lines with a copyright notice.
49
next unless $line =~ m/$cc.*$pgdg/;
50
51
- # We stop when we've done one substitution. This is both for
52
- # efficiency and, at least in the case of this program, for
53
- # correctness.
54
- last if $line =~ m/$cc.*$year.*$pgdg/;
55
- last if $line =~ s/($cc\d{4})(, $pgdg)/$1-$year$2/;
56
- last if $line =~ s/($cc\d{4})-\d{4}(, $pgdg)/$1-$year$2/;
+ # We process all lines because some files have copyright
+ # strings embedded in them, e.g. src/bin/psql/help.c
+ $line =~ s/($cc\d{4})(, $pgdg)/$1-$year$2/;
+ $line =~ s/($cc\d{4})-\d{4}(, $pgdg)/$1-$year$2/;
57
}
58
untie @lines;
59
0 commit comments