postgresql/src/tools/copyright

14 lines
430 B
Plaintext
Raw Normal View History

#!/bin/sh
# $PostgreSQL: pgsql/src/tools/copyright,v 1.14 2007/01/10 02:41:28 momjian Exp $
echo "Using current year: `date '+%Y'`"
2005-01-03 07:16:54 +01:00
rgrep -l 'Copyright.*PostgreSQL Global Development Group' | while read FILE
2000-02-23 23:24:46 +01:00
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
2000-02-23 23:24:46 +01:00
done
echo "Manually update doc/src/sgml/legal.sgml too" 1>&2