mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-06 15:24:56 +08:00
Have copyright.pl skip updating something that is just the current year,
to avoid producing dups, e.g. 2012-2012 Backpatch to 9.2.
This commit is contained in:
parent
95203e0833
commit
d17c0135cd
@ -48,6 +48,10 @@ sub wanted
|
||||
# We only care about lines with a copyright notice.
|
||||
next unless $line =~ m/$cc.*$pgdg/;
|
||||
|
||||
# Skip line if already matches the current year; if not
|
||||
# we get $year-$year, e.g. 2012-2012
|
||||
next if $line =~ m/$cc$year, $pgdg/;
|
||||
|
||||
# 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/;
|
||||
|
Loading…
Reference in New Issue
Block a user