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