Skip to content

Commit 5a2a527

Browse files
committed
Modify copyright script to pull current year from date.
1 parent c30a945 commit 5a2a527

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tools/copyright

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/sh
22

3-
# $PostgreSQL: pgsql/src/tools/copyright,v 1.11 2006/03/11 04:38:41 momjian Exp $
3+
# $PostgreSQL: pgsql/src/tools/copyright,v 1.12 2007/01/05 21:09:53 momjian Exp $
44

55
rgrep -l 'Copyright.*PostgreSQL Global Development Group' | while read FILE
66
do
7-
pipe sed 's/^\(.*Copyright (c) [12][0-9][0-9][0-9]-\)[12][0-9][0-9][0-9]\(, PostgreSQL Global Development Group.*\)$/\12006\2/' $FILE
7+
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
88
done
99

1010
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