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