]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Commit the update-copyrights script.
authorNick Mathewson <nickm@torproject.org>
Fri, 2 Jan 2015 19:28:21 +0000 (14:28 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 2 Jan 2015 19:28:21 +0000 (14:28 -0500)
(I'm tired of rewriting this by hand every January)

scripts/maint/updateCopyright.pl [new file with mode: 0755]

diff --git a/scripts/maint/updateCopyright.pl b/scripts/maint/updateCopyright.pl
new file mode 100755 (executable)
index 0000000..ec82616
--- /dev/null
@@ -0,0 +1,7 @@
+#!/usr/bin/perl -i -w -p
+
+$NEWYEAR=2015;
+
+s/Copyright(.*) (201[^5]), The Tor Project/Copyright$1 $2-${NEWYEAR}, The Tor Project/;
+
+s/Copyright(.*)-(20..), The Tor Project/Copyright$1-${NEWYEAR}, The Tor Project/;