Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd17c013

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

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
nextunless$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+
nextif$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)

[8]ページ先頭

©2009-2025 Movatter.jp