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