Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1af45f1 commit be6c3b5Copy full SHA for be6c3b5
src/tools/copyright
@@ -1,12 +1,14 @@
1
#!/bin/sh
2
3
-# $PostgreSQL: pgsql/src/tools/copyright,v 1.14 2007/01/10 02:41:28 momjian Exp $
+# $PostgreSQL: pgsql/src/tools/copyright,v 1.15 2008/01/02 02:36:18 momjian Exp $
4
5
echo "Using current year: `date '+%Y'`"
6
7
rgrep -l 'Copyright.*PostgreSQL Global Development Group' | while read FILE
8
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
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
12
done
13
14
echo "Manually update doc/src/sgml/legal.sgml too" 1>&2
0 commit comments