From: Mark Andrews Date: Fri, 12 Jun 2009 04:07:27 +0000 (+0000) Subject: don't hard code the current year X-Git-Tag: v9.6.1-P1^2^4~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28318a25281fbf1497cb0320652fc9b53a0e72cc;p=thirdparty%2Fbind9.git don't hard code the current year --- diff --git a/util/update_copyrights b/util/update_copyrights index e51d2238083..80be96dc9c9 100644 --- a/util/update_copyrights +++ b/util/update_copyrights @@ -15,7 +15,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: update_copyrights,v 1.51.156.2 2009/01/06 23:47:26 tbox Exp $ +# $Id: update_copyrights,v 1.51.156.3 2009/06/12 04:07:27 marka Exp $ require 5.002; @@ -56,6 +56,10 @@ my %file_years = (); my $years_list; my $parent; +($dummy,$dummy,$dummy,$dummy,$dummy,$this_year,$dummy,$dummy,$dummy) = localtime(time()); +$this_year += 1900; + + while (<>) { chomp; ($file, $type, $years) = split(/\s+/); @@ -431,7 +435,7 @@ foreach $file (keys %file_types) { print TARGET "\n"; } - if ($type eq "C" && $sysyears =~ /2009/) { + if ($type eq "C" && $sysyears =~ /$this_year/) { my $body = ""; while () { # Process leading white space.