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-Tag: REL8_3_RC1~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=be6c3b5c2baed78a85e9f5725f26afc1654fdd26;p=postgresql 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 de463d101e..1c1ca305aa 100755 --- a/src/tools/copyright +++ b/src/tools/copyright @@ -1,12 +1,14 @@ #!/bin/sh -# $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 $ 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