summaryrefslogtreecommitdiff
path: root/scripts/maint/updateCopyright.pl
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-05-20 12:02:20 -0400
committerNick Mathewson <nickm@torproject.org>2019-05-20 12:02:20 -0400
commit66eb0a5a32e78e541f2b350fc814c35f17150859 (patch)
tree7065d5b74b1b6469cb56fd75a894b8cc084d8654 /scripts/maint/updateCopyright.pl
parent2f31c8146ff12aa96a33cce47bf4b5f5eeac8a06 (diff)
downloadtor-66eb0a5a32e78e541f2b350fc814c35f17150859.tar.gz
tor-66eb0a5a32e78e541f2b350fc814c35f17150859.zip
updateCopyright: look at the current year.
Diffstat (limited to 'scripts/maint/updateCopyright.pl')
-rwxr-xr-xscripts/maint/updateCopyright.pl6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/maint/updateCopyright.pl b/scripts/maint/updateCopyright.pl
index 36894b1baf..6800032f87 100755
--- a/scripts/maint/updateCopyright.pl
+++ b/scripts/maint/updateCopyright.pl
@@ -1,7 +1,9 @@
#!/usr/bin/perl -i -w -p
-$NEWYEAR=2019;
+@now = gmtime();
-s/Copyright(.*) (201[^9]), The Tor Project/Copyright$1 $2-${NEWYEAR}, The Tor Project/;
+$NEWYEAR=$now[5]+1900;
+
+s/Copyright([^-]*) (20[^-]*), The Tor Project/Copyright$1 $2-${NEWYEAR}, The Tor Project/;
s/Copyright(.*)-(20..), The Tor Project/Copyright$1-${NEWYEAR}, The Tor Project/;