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

Commitbe6c3b5

Browse files
committed
Modify copyright script to handle cases where there is only one year
in the copyright
1 parent1af45f1 commitbe6c3b5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎src/tools/copyright

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

3-
# $PostgreSQL: pgsql/src/tools/copyright,v 1.14 2007/01/10 02:41:28 momjian Exp $
3+
# $PostgreSQL: pgsql/src/tools/copyright,v 1.15 2008/01/02 02:36:18 momjian Exp $
44

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

77
rgrep -l'Copyright.*PostgreSQL Global Development Group'|whileread FILE
88
do
99
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
10+
# 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
1012
done
1113

1214
echo"Manually update doc/src/sgml/legal.sgml too"1>&2

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp