Skip to content

Commit be6c3b5

Browse files
committed
Modify copyright script to handle cases where there is only one year
in the copyright
1 parent 1af45f1 commit be6c3b5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/tools/copyright

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
#!/bin/sh
22

3-
# $PostgreSQL: pgsql/src/tools/copyright,v 1.14 2007/01/10 02:41:28 momjian Exp $
3+
# $PostgreSQL: pgsql/src/tools/copyright,v 1.15 2008/01/02 02:36:18 momjian Exp $
44

55
echo "Using current year: `date '+%Y'`"
66

77
rgrep -l 'Copyright.*PostgreSQL Global Development Group' | while read FILE
88
do
99
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
10+
# handle cases where only one year appears
11+
pipe sed 's/^\(.*Copyright (c) [12][0-9][0-9][0-9]\) \?\(, PostgreSQL Global Development Group.*\)$/\1-'`date '+%Y'`'\2/' $FILE
1012
done
1113

1214
echo "Manually update doc/src/sgml/legal.sgml too" 1>&2

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy