summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-01-02 14:28:21 -0500
committerNick Mathewson <nickm@torproject.org>2015-01-02 14:28:21 -0500
commitfc0febc5c62a8c5ad2373b43641a70a8d793a469 (patch)
treee4bc89b372f3dffcc9cea0590b3a5e95e28f2c21 /scripts
parentf54e54b0b454b42ed22f2f2feec0b952d9bcb199 (diff)
downloadtor-fc0febc5c62a8c5ad2373b43641a70a8d793a469.tar.gz
tor-fc0febc5c62a8c5ad2373b43641a70a8d793a469.zip
Commit the update-copyrights script.
(I'm tired of rewriting this by hand every January)
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/maint/updateCopyright.pl7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/maint/updateCopyright.pl b/scripts/maint/updateCopyright.pl
new file mode 100755
index 0000000000..ec82616a19
--- /dev/null
+++ b/scripts/maint/updateCopyright.pl
@@ -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/;