]> granicus.if.org Git - postgresql/commitdiff
Update copyright script to allow spaces around dash.
authorBruce Momjian <bruce@momjian.us>
Wed, 10 Jan 2007 02:41:28 +0000 (02:41 +0000)
committerBruce Momjian <bruce@momjian.us>
Wed, 10 Jan 2007 02:41:28 +0000 (02:41 +0000)
contrib/adminpack/adminpack.c
src/tools/copyright

index ab88560c64d376ec8b7c7f3bfe8102dc1b3ab19c..28b4c041c4e15e65fa12ed7e7680d6edfeed081b 100644 (file)
@@ -3,12 +3,12 @@
  * 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>
  *
  * 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 $
  *
  *-------------------------------------------------------------------------
  */
index 0100e9e8b54782b08d4215c4f6b3e352dbd5f038..de463d101e89f27fbac8cf6f230c60dc30dc6739 100755 (executable)
@@ -1,12 +1,12 @@
 #!/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'`"
 
 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
+       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