Fix a few errors in comments. Patch by Fujii Masao, plus the one in
[PostgreSQL.git] / src / tools / copyright
blobbc71626e69a1f5f4099039d84e546e201f224b48
1 #!/bin/sh
3 # $PostgreSQL$
5 echo "Using current year: `date '+%Y'`"
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
14 echo "Manually update doc/src/sgml/legal.sgml and src/interfaces/libpq/libpq.rc.in too" 1>&2