When a relation is moved to another tablespace, we can't assume that we can
[PostgreSQL.git] / src / tools / copyright
blobcb033bfe7751c2e71bc48760b5b0d9647fab45d8
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 too" 1>&2