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

Commit95203e0

Browse files
committed
Modify copyright.pl so all lines are processed, not just the first
match, so files that contain embedded copyrights are updated, e.g.pgsql/help.c.Backpatch to 9.2.
1 parent5198ae8 commit95203e0

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

‎src/tools/copyright.pl

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

51-
# We stop when we've done one substitution. This is both for
52-
# efficiency and, at least in the case of this program, for
53-
# correctness.
54-
lastif$line =~m/$cc.*$year.*$pgdg/;
55-
lastif$line =~s/($cc\d{4})(, $pgdg)/$1-$year$2/;
56-
lastif$line =~s/($cc\d{4})-\d{4}(, $pgdg)/$1-$year$2/;
51+
# We process all lines because some files have copyright
52+
# strings embedded in them, e.g. src/bin/psql/help.c
53+
$line =~s/($cc\d{4})(, $pgdg)/$1-$year$2/;
54+
$line =~s/($cc\d{4})-\d{4}(, $pgdg)/$1-$year$2/;
5755
}
5856
untie@lines;
5957
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp