merge_copyrights revision 754cb8a2b33fa6cfaa15d6470f66e5fb0eab4764
3e02c9e33656dcd9c364633d42dd785d3e6fdd66Automatic Updater# Copyright (C) 2004-2007, 2009 Internet Systems Consortium, Inc. ("ISC")
3e02c9e33656dcd9c364633d42dd785d3e6fdd66Automatic Updater# Copyright (C) 1998-2001, 2003 Internet Software Consortium.
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# Permission to use, copy, modify, and/or distribute this software for any
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# purpose with or without fee is hereby granted, provided that the above
3e02c9e33656dcd9c364633d42dd785d3e6fdd66Automatic Updater# copyright notice and this permission notice appear in all copies.
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
3e02c9e33656dcd9c364633d42dd785d3e6fdd66Automatic Updater# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# PERFORMANCE OF THIS SOFTWARE.
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater# $Id: merge_copyrights,v 1.33 2009/06/11 23:47:56 tbox Exp $
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updateropen(COPYRIGHTS, "<util/copyrights") || die "can't open ./util/copyrights: $!";
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time());
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updateropen(FILES, "$find | sort |") || die "can't start \"$find\": $!";
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater next if (m%/\.\# | # CVS old conflict file
a3f8c8e20780e488141d200acdfea6c5f3303513Automatic Updater # Strip any .in extension to find out the file's real type.
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater # .in files are processed by configure to produce the target file.
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater # Contributed code should maintain its own copyright.
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater } elsif ($base =~ /\/(named|rndc).?\.conf$/) {
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater } elsif ($base =~ /(\/\.cvsignore|\.gif|\.jpg|\.dsp|\.dsw|\.mak)$/i) {
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,
a3f8c8e20780e488141d200acdfea6c5f3303513Automatic Updater ($sec,$min,$hour,$mday,$mon,$c_year,$wday,$yday,$isdst) =
a3f8c8e20780e488141d200acdfea6c5f3303513Automatic Updater ($sec,$min,$hour,$mday,$mon,$m_year,$wday,$yday,$isdst) =
a3f8c8e20780e488141d200acdfea6c5f3303513Automatic Updater if ($m_year != $year || $c_year != $year) {
a3f8c8e20780e488141d200acdfea6c5f3303513Automatic Updater print "$_: must set copyright year(s) manually\n";
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater # keep perl from issuing warnings about "used only once"
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater $dev = $ino = $mode = $nlink = $uid = $gid = $rdev = $size = 0;
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater if (! defined($file_years{$_}) || $file_years{$_} eq "????") {
8ec3c085233cedb22b05da36e2773c8f357a7e45Automatic Updater print "$_: must set copyright year(s) manually\n";
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater # track the modification years even if we are not going to be
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updater ($sec,$min,$hour,$mday,$mon,$m_year,$wday,$yday,$isdst) =
590c12cfe3b9a179ab2faa1be791a069c81882e0Automatic Updateropen(NEWCOPYRIGHTS, ">util/newcopyrights") ||