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