Commit 5a2a527b authored by Bruce Momjian's avatar Bruce Momjian

Modify copyright script to pull current year from `date`.

parent c30a945c
#!/bin/sh
# $PostgreSQL: pgsql/src/tools/copyright,v 1.11 2006/03/11 04:38:41 momjian Exp $
# $PostgreSQL: pgsql/src/tools/copyright,v 1.12 2007/01/05 21:09:53 momjian Exp $
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.*\)$/\12006\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
done
echo "Manually update doc/src/sgml/legal.sgml too" 1>&2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment