mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-18 18:44:06 +08:00
Update copyright script to allow spaces around dash.
This commit is contained in:
parent
125d516a7a
commit
25d64529b8
@ -3,12 +3,12 @@
|
|||||||
* adminpack.c
|
* adminpack.c
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* Copyright (c) 2002 - 2006, PostgreSQL Global Development Group
|
* Copyright (c) 2002-2007, PostgreSQL Global Development Group
|
||||||
*
|
*
|
||||||
* Author: Andreas Pflug <pgadmin@pse-consulting.de>
|
* Author: Andreas Pflug <pgadmin@pse-consulting.de>
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/contrib/adminpack/adminpack.c,v 1.8 2006/11/06 03:06:40 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/adminpack/adminpack.c,v 1.9 2007/01/10 02:41:28 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# $PostgreSQL: pgsql/src/tools/copyright,v 1.13 2007/01/05 21:29:20 momjian Exp $
|
# $PostgreSQL: pgsql/src/tools/copyright,v 1.14 2007/01/10 02:41:28 momjian Exp $
|
||||||
|
|
||||||
echo "Using current year: `date '+%Y'`"
|
echo "Using current year: `date '+%Y'`"
|
||||||
|
|
||||||
rgrep -l 'Copyright.*PostgreSQL Global Development Group' | while read FILE
|
rgrep -l 'Copyright.*PostgreSQL Global Development Group' | while read FILE
|
||||||
do
|
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
|
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
|
done
|
||||||
|
|
||||||
echo "Manually update doc/src/sgml/legal.sgml too" 1>&2
|
echo "Manually update doc/src/sgml/legal.sgml too" 1>&2
|
||||||
|
Loading…
Reference in New Issue
Block a user