From: Bruce Momjian Date: Wed, 2 Jan 2008 02:36:18 +0000 (+0000) Subject: Modify copyright script to handle cases where there is only one year X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=f4bf6f579cf3df1ae45ffde9cc8980a924a1523f;p=users%2Fbernd%2Fpostgres.git Modify copyright script to handle cases where there is only one year in the copyright --- diff --git a/src/tools/copyright b/src/tools/copyright index 5864de0301..cb033bfe77 100755 --- a/src/tools/copyright +++ b/src/tools/copyright @@ -7,6 +7,8 @@ echo "Using current year: `date '+%Y'`" rgrep -l 'Copyright.*PostgreSQL Global Development Group' | while read FILE do 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 + # handle cases where only one year appears + pipe sed 's/^\(.*Copyright (c) [12][0-9][0-9][0-9]\) \?\(, PostgreSQL Global Development Group.*\)$/\1-'`date '+%Y'`'\2/' $FILE done echo "Manually update doc/src/sgml/legal.sgml too" 1>&2