mirror of
https://github.com/postgres/postgres.git
synced 2026-04-04 16:55:45 -04:00
14 lines
588 B
Bash
Executable file
14 lines
588 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# src/tools/copyright
|
|
|
|
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
|
|
# 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
|
|
done
|
|
|
|
echo "Manually update doc/src/sgml/legal.sgml and src/interfaces/libpq/libpq.rc.in too" 1>&2
|