mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Modify copyright script to pull current year from date
.
This commit is contained in:
@ -1,10 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# $PostgreSQL: pgsql/src/tools/copyright,v 1.11 2006/03/11 04:38:41 momjian Exp $
|
# $PostgreSQL: pgsql/src/tools/copyright,v 1.12 2007/01/05 21:09:53 momjian Exp $
|
||||||
|
|
||||||
rgrep -l 'Copyright.*PostgreSQL Global Development Group' | while read FILE
|
rgrep -l 'Copyright.*PostgreSQL Global Development Group' | while read FILE
|
||||||
do
|
do
|
||||||
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
|
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
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "Manually update doc/src/sgml/legal.sgml too" 1>&2
|
echo "Manually update doc/src/sgml/legal.sgml too" 1>&2
|
||||||
|
Reference in New Issue
Block a user