merge_copyrights revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Copyright (C) 1998-2001, 2003-2007, 2009-2016 Internet Systems Consortium, Inc. ("ISC")
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# This Source Code Form is subject to the terms of the Mozilla Public
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# License, v. 2.0. If a copy of the MPL was not distributed with this
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# file, You can obtain one at http://mozilla.org/MPL/2.0/.
460b427411b72da26b1836b9424e2e70d65d9394David Lawrenceopen(COPYRIGHTS, "<util/copyrights") || die "can't open ./util/copyrights: $!";
c7b785510e3f517a0c98c0b6b6e6ad8f359e9e4cMark Andrewsmy ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime(time());
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt$sec = $min = $hour = $mday = $mon = $wday = $yday = $isdst = 0;
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Huntopen(FILES, "git ls-files | sed 's;^;./;' |") || die "git ls-files: $!";
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Huntopen(CHANGES, "sh util/recent_changes.sh |") || die "recent_changes.sh: $!";
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence # Strip any .in extension to find out the file's real type.
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence # .in files are processed by configure to produce the target file.
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark Andrews # Contributed code should maintain its own copyright.
2d46d268ccff30bb50e661b47c6496d23d9156c7Mark Andrews } elsif ($base =~ /\/openssl-[a-z0-9.]*-patch$/) {
66c9805347f24da946c17a881e489ffe2e89c25dMark Andrews $base =~ s/\.[0-9]$//;
7f9f8c13c5e5e26e0ba2b82c0900d11ecf6269ceMark Andrews } elsif ($base =~ /\/(named|rndc|good|bad).{0,2}\.conf$/) {
c3e6fbe4b7471d843d015e3f1737b7edb9d0c547Mark Andrews } elsif ($base =~ /\/checkconf\/(good|bad)-.*\.conf$/) {
6376f6189950156cc1488c86f22b19dd4feec11cMark Andrews } elsif ($base =~ /(\/\.(gitignore|gitattributes)|Atffile|\.(gif|jpg))$/i) {
5e47b4200ed81b8e18e165fe3a626d9992003db4Mark Andrews } elsif ($base =~ /\.(def|dep|dsp|dsw|mak|sln)$/i) {
5e47b4200ed81b8e18e165fe3a626d9992003db4Mark Andrews } elsif ($base =~ /\.(vcxproj(|\.(user|filters)))$/i) {
66c9805347f24da946c17a881e489ffe2e89c25dMark Andrews if (($file_types{$_} eq "MAN" || $file_types{$_} eq "HTML") &&
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley print "$_: must set copyright year(s) manually\n";
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews if (! defined($file_years{$_}) || $file_years{$_} eq "????") {
18483fce5b9d1e02748bdcb916014cedea654f78Mark Andrews print "$_: must set copyright year(s) manually\n";
a9558a6c63d9c6dbb2f3800b39ccb008652fcde3Mark Andrews # track the modification years even if we are not going to be
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley printf NEWCOPYRIGHTS "%s\t%s\n", $file_types{$file}, $file_years{$file};
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt if (($file_years{$file} eq "????") || ($file_types{$file} eq "?")) {