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

Commit65deb13

Browse files
committed
Be smarter --- accept missing comma, and force comma if missing.
1 parent34273b4 commit65deb13

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/tools/copyright

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
#!/bin/sh
22

3-
# $PostgreSQL: pgsql/src/tools/copyright,v 1.17 2009/01/01 18:23:10 momjian Exp $
3+
# $PostgreSQL: pgsql/src/tools/copyright,v 1.18 2009/01/01 18:31:55 momjian Exp $
44

55
echo"Using current year:`date'+%Y'`"
66

77
rgrep -l'Copyright.*PostgreSQL Global Development Group'|whileread FILE
88
do
9-
pipe sed's/^\(.*Copyright (c) [12][0-9][0-9][0-9]\) \?- \?[12][0-9][0-9][0-9]\(,\? PostgreSQL Global Development Group.*\)$/\1-'`date'+%Y'`'\2/'$FILE
9+
pipe sed's/^\(.*Copyright (c) [12][0-9][0-9][0-9]\) \?- \?[12][0-9][0-9][0-9] \?,\?\( PostgreSQL Global Development Group.*\)$/\1-'`date'+%Y'`',\2/'$FILE
1010
# handle cases where only one year appears
11-
pipe sed's/^\(.*Copyright (c) [12][0-9][0-9][0-9]\) \?\(,\? PostgreSQL Global Development Group.*\)$/\1-'`date'+%Y'`'\2/'$FILE
11+
pipe sed's/^\(.*Copyright (c) [12][0-9][0-9][0-9]\) \?,\?\( PostgreSQL Global Development Group.*\)$/\1-'`date'+%Y'`',\2/'$FILE
1212
done
1313

1414
echo"Manually update doc/src/sgml/legal.sgml and src/interfaces/libpq/libpq.rc.in too"1>&2

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp