tor/scripts/maint/updateCopyright.pl
2019-05-20 12:02:20 -04:00

10 lines
242 B
Perl
Executable File

#!/usr/bin/perl -i -w -p
@now = gmtime();
$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/;