From: Bruce Momjian Date: Thu, 1 Jan 2009 18:21:56 +0000 (+0000) Subject: Make comma optional for copyright text change. X-Git-Tag: REL8_4_BETA1~499 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c4eaa9672a0a6cfefb27c4d1d7e7d862c45aea9c;p=postgresql Make comma optional for copyright text change. --- diff --git a/src/tools/copyright b/src/tools/copyright index 1c1ca305aa..63897c83cd 100755 --- a/src/tools/copyright +++ b/src/tools/copyright @@ -1,14 +1,14 @@ #!/bin/sh -# $PostgreSQL: pgsql/src/tools/copyright,v 1.15 2008/01/02 02:36:18 momjian Exp $ +# $PostgreSQL: pgsql/src/tools/copyright,v 1.16 2009/01/01 18:21:56 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 + 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 + 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