From: Mark Andrews Date: Tue, 28 Aug 2007 02:13:52 +0000 (+0000) Subject: incremental and/or conversion for old branches X-Git-Tag: v9.2.9rc1~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19618d7274ad7d2b40d9d09876c81f5641220f23;p=thirdparty%2Fbind9.git incremental and/or conversion for old branches --- diff --git a/util/update_copyrights b/util/update_copyrights index 1298e8b5b20..9c8b9124885 100644 --- a/util/update_copyrights +++ b/util/update_copyrights @@ -3,7 +3,7 @@ # Copyright (C) 2004-2007 Internet Systems Consortium, Inc. ("ISC") # Copyright (C) 1998-2001 Internet Software Consortium. # -# Permission to use, copy, modify, and distribute this software for any +# Permission to use, copy, modify, and/or distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # @@ -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.26.2.15 2007/01/08 03:13:04 marka Exp $ +# $Id: update_copyrights,v 1.26.2.16 2007/08/28 02:13:52 marka Exp $ require 5.002; @@ -377,8 +377,10 @@ foreach $file (keys %file_types) { $anchor_year = 0; $years = ""; $anchor_end = length($years); + my $andor = 0; foreach $year (@years) { if ($year < 2004) { next; } + $andor = 1 if ($year >= 2007); if ($last_year != 0 && $year == $last_year + 1) { if ($year > $anchor_year + 1) { substr($years, $anchor_end) = "-$year"; @@ -399,22 +401,21 @@ foreach $file (keys %file_types) { } $sysyears = $years; - ($firstline, $secondline, $thirdline, @otherlines) = @$textp; + ($firstline, $secondline, @otherlines) = @$textp; $firstline =~ s/\@SYSYEARS\@/$sysyears/; $secondline =~ s/\@SFTYEARS\@/$sftyears/; - $thirdline =~ s/\@NOMYEARS\@/$nomyears/; print TARGET "$prefix$firstline"; if ($sftyears ne "" ) { print TARGET $secondline =~ /^$/ ? $nonspaceprefix : $prefix; print TARGET "$secondline"; } - print TARGET $thirdline =~ /^$/ ? $nonspaceprefix : $prefix; - print TARGET "$thirdline"; foreach $_ (@otherlines) { + s:modify, and distribute:modify, and/or distribute: if ($andor); print TARGET (/^$/ ? $nonspaceprefix : $prefix); + s/\@NOMYEARS\@/$nomyears/; print TARGET "$_"; } print TARGET $end_comment if $end_comment;