We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent5198ae8 commit95203e0Copy 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
nextunless$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
-lastif$line =~m/$cc.*$year.*$pgdg/;
55
-lastif$line =~s/($cc\d{4})(, $pgdg)/$1-$year$2/;
56
-lastif$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