[tor-commits] [tor/master] updateCopyright: look at the current year.
asn at torproject.org
asn at torproject.org
Wed May 29 18:25:47 UTC 2019
commit 66eb0a5a32e78e541f2b350fc814c35f17150859
Author: Nick Mathewson <nickm at torproject.org>
Date: Mon May 20 12:02:20 2019 -0400
updateCopyright: look at the current year.
---
scripts/maint/updateCopyright.pl | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/scripts/maint/updateCopyright.pl b/scripts/maint/updateCopyright.pl
index 36894b1ba..6800032f8 100755
--- a/scripts/maint/updateCopyright.pl
+++ b/scripts/maint/updateCopyright.pl
@@ -1,7 +1,9 @@
#!/usr/bin/perl -i -w -p
-$NEWYEAR=2019;
+ at 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/;
More information about the tor-commits
mailing list