Skip to content

Commit d17c013

Browse files
committed
Have copyright.pl skip updating something that is just the current year,
to avoid producing dups, e.g. 2012-2012 Backpatch to 9.2.
1 parent 95203e0 commit d17c013

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/tools/copyright.pl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ sub wanted
4848
# We only care about lines with a copyright notice.
4949
next unless $line =~ m/$cc.*$pgdg/;
5050

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+
5155
# We process all lines because some files have copyright
5256
# strings embedded in them, e.g. src/bin/psql/help.c
5357
$line =~ s/($cc\d{4})(, $pgdg)/$1-$year$2/;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy