merge_copyrights revision 680cbc050aead48a0de9cdcea621f2747ca5ddc7
3e02c9e33656dcd9c364633d42dd785d3e6fdd66Automatic Updater# Copyright (C) 1998-2001, 2003-2007, 2009-2017 Internet Systems Consortium, Inc. ("ISC")
c6fb85f9500350e5ce58c9a24f5d264c8a8bd6f4Automatic Updater# This Source Code Form is subject to the terms of the Mozilla Public
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# License, v. 2.0. If a copy of the MPL was not distributed with this
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt# file, You can obtain one at http://mozilla.org/MPL/2.0/.
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox Useropen(COPYRIGHTS, "<util/copyrights") || die "can't open ./util/copyrights: $!";
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updatermy ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime(time());
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt$sec = $min = $hour = $mday = $mon = $wday = $yday = $isdst = 0;
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Huntopen(FILES, "git ls-files | sed 's;^;./;' |") || die "git ls-files: $!";
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Huntopen(CHANGES, "sh util/recent_changes.sh |") || die "recent_changes.sh: $!";
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt # Strip any .in extension to find out the file's real type.
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt # .in files are processed by configure to produce the target file.
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt # Contributed code should maintain its own copyright.
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt } elsif ($base =~ /\/openssl-[a-z0-9.]*-patch$/) {
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater } elsif ($base =~ /doc\/arm\/.*\.html$/) {
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User $base =~ s/\.[0-9]$//;
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt } elsif ($base =~ /\/(named|rndc|good|bad).{0,2}\.conf$/) {
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt } elsif ($base =~ /\/checkconf\/(good|bad)-.*\.conf$/) {
12bfbed87cfffa65ac300b72c5665ab38a355c2fAutomatic Updater } elsif ($base =~ /(\/\.(gitignore|gitattributes)|Atffile|Kyuafile|\.(gif|jpg))$/i) {
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt } elsif ($base =~ /\.(def|dep|dsp|dsw|mak|sln)$/i) {
6ea2385360e9e2167e65f9286447da9eea189457Tinderbox User } elsif ($base =~ /\.(vcxproj(|\.(user|filters)))$/i) {
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt } elsif ($base =~ /\/doc\/misc\/[-a-z]*\.zoneopt$/i) {
0a7ed88633a680bb881868b75ded4d09a7bbbc50Automatic Updater if (($file_types{$_} eq "MAN" || $file_types{$_} eq "HTML") &&
1bc5499c2a0fc5d2b11849e97cdd6305a64eb242Evan Hunt print "$_: must set copyright year(s) manually\n";
my $has_current = 0;
$has_current = 1;
my $tabs = 0;
$tabs = 1;
$tabs++;