Content-Length: 270784 | pFad | http://github.com/postgrespro/postgres/commit/be6c3b5c2baed78a85e9f5725f26afc1654fdd26

D0 Modify copyright script to handle cases where there is only one year · postgrespro/postgres@be6c3b5 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/be6c3b5c2baed78a85e9f5725f26afc1654fdd26

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy