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

Commit5a2a527

Browse files
committed
Modify copyright script to pull current year fromdate.
1 parentc30a945 commit5a2a527

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/tools/copyright

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

3-
# $PostgreSQL: pgsql/src/tools/copyright,v 1.11 2006/03/11 04:38:41 momjian Exp $
3+
# $PostgreSQL: pgsql/src/tools/copyright,v 1.12 2007/01/05 21:09:53 momjian Exp $
44

55
rgrep -l'Copyright.*PostgreSQL Global Development Group'|whileread FILE
66
do
7-
pipe sed's/^\(.*Copyright (c) [12][0-9][0-9][0-9]-\)[12][0-9][0-9][0-9]\(, PostgreSQL Global Development Group.*\)$/\12006\2/'$FILE
7+
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
88
done
99

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp