merge_copyrights revision af9dbf1ccdd53933aaae9300d13ce0965d39b067
c8175ece69d986ccd0671bc4d2571b247dfae177Automatic Updater# Copyright (C) 2004-2007, 2009-2011 Internet Systems Consortium, Inc. ("ISC")
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# Copyright (C) 1998-2001, 2003 Internet Software Consortium.
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# Permission to use, copy, modify, and/or distribute this software for any
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# purpose with or without fee is hereby granted, provided that the above
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# copyright notice and this permission notice appear in all copies.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# PERFORMANCE OF THIS SOFTWARE.
460b427411b72da26b1836b9424e2e70d65d9394David Lawrenceopen(COPYRIGHTS, "<util/copyrights") || die "can't open ./util/copyrights: $!";
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Huntmy ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(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$/) {
7f9f8c13c5e5e26e0ba2b82c0900d11ecf6269ceMark Andrews } elsif ($base =~ /\/(named|rndc|good|bad).{0,2}\.conf$/) {
f9cf2285cd7e334f059eb31b327ba81eb061450bEvan Hunt } elsif ($base =~ /(\/\.gitignore|\.gif|\.jpg|\.dsp|\.dsw|\.mak)$/i) {
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley print "$_: must set copyright year(s) manually\n";
0014d6342b0d50ae37126ac16d5bf821d02ffff7David Lawrence if (! defined($file_years{$_}) || $file_years{$_} eq "????") {
0014d6342b0d50ae37126ac16d5bf821d02ffff7David Lawrence 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 "?")) {