We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95203e0 commit d17c013Copy full SHA for d17c013
src/tools/copyright.pl
@@ -48,6 +48,10 @@ sub wanted
48
# We only care about lines with a copyright notice.
49
next unless $line =~ m/$cc.*$pgdg/;
50
51
+ # Skip line if already matches the current year; if not
52
+ # we get $year-$year, e.g. 2012-2012
53
+ next if $line =~ m/$cc$year, $pgdg/;
54
+
55
# We process all lines because some files have copyright
56
# strings embedded in them, e.g. src/bin/psql/help.c
57
$line =~ s/($cc\d{4})(, $pgdg)/$1-$year$2/;
0 commit comments