Thanks to visit codestin.com Credit goes to github.com
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 efd07bd commit c99882aCopy full SHA for c99882a
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