merge_copyrights revision 247bf378605811d695e968dbe930a7fc45c0038e
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen; Copyright (C) 2004-2007, 2009-2012 Internet Systems Consortium, Inc. ("ISC")
16f816d3f3c32ae3351834253f52ddd0212bcbf3Timo Sirainen; Copyright (C) 1998-2001, 2003 Internet Software Consortium.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen; Permission to use, copy, modify, and/or distribute this software for any
e8acc691a14a6d0884c5ca9aa4d8507f1e082040Timo Sirainen; purpose with or without fee is hereby granted, provided that the above
a24f5976e9c6154ff58291634647a22a363c3198Timo Sirainen; copyright notice and this permission notice appear in all copies.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen; THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
2a6af811ea3de3cf9e2f15e446674dd21b0705f3Timo Sirainen; REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen; AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen; INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2a6af811ea3de3cf9e2f15e446674dd21b0705f3Timo Sirainen; LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
2a6af811ea3de3cf9e2f15e446674dd21b0705f3Timo Sirainen; OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
51795bfe9d05d92fe942cb451aec2b9d16d32a11Timo Sirainenopen(COPYRIGHTS, "<util/copyrights") || die "can't open ./util/copyrights: $!";
e8acc691a14a6d0884c5ca9aa4d8507f1e082040Timo Sirainenmy ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time());
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen$sec = $min = $hour = $mday = $mon = $wday = $yday = $isdst = 0;
aa0647f2debf0d48d504a321186f66c85596aaf4Timo Sirainenopen(FILES, "git ls-files | sed 's;^;./;' |") || die "git ls-files: $!";
0c909e3461607eadcd66f4eac69b7f34e37fccf1Timo Sirainenopen(CHANGES, "sh util/recent_changes.sh |") || die "recent_changes.sh: $!";
e8acc691a14a6d0884c5ca9aa4d8507f1e082040Timo Sirainen # Strip any .in extension to find out the file's real type.
e8acc691a14a6d0884c5ca9aa4d8507f1e082040Timo Sirainen # .in files are processed by configure to produce the target file.
e8acc691a14a6d0884c5ca9aa4d8507f1e082040Timo Sirainen # Contributed code should maintain its own copyright.
0cb2e8eb55e70f8ebe1e8349bdf49e4cbe5d8834Timo Sirainen } elsif ($base =~ /\/openssl-[a-z0-9.]*-patch$/) {
b87a4156eca6dcf6b29c504eb0cb9be2fdb11b63Timo Sirainen } elsif ($base =~ /\/(named|rndc|good|bad).{0,2}\.conf$/) {
b87a4156eca6dcf6b29c504eb0cb9be2fdb11b63Timo Sirainen } elsif ($base =~ /(\/\.gitignore|\.gif|\.jpg|\.dsp|\.dsw|\.mak)$/i) {
b87a4156eca6dcf6b29c504eb0cb9be2fdb11b63Timo Sirainen print "$_: must set copyright year(s) manually\n";
b87a4156eca6dcf6b29c504eb0cb9be2fdb11b63Timo Sirainen if (! defined($file_years{$_}) || $file_years{$_} eq "????") {
b87a4156eca6dcf6b29c504eb0cb9be2fdb11b63Timo Sirainen print "$_: must set copyright year(s) manually\n";
e8acc691a14a6d0884c5ca9aa4d8507f1e082040Timo Sirainen # track the modification years even if we are not going to be
b92813e2f96d4b28f989528ed5dd6115da7d9bdbTimo Sirainen printf NEWCOPYRIGHTS "%s\t%s\n", $file_types{$file}, $file_years{$file};
2a6af811ea3de3cf9e2f15e446674dd21b0705f3Timo Sirainen if (($file_years{$file} eq "????") || ($file_types{$file} eq "?")) {