merge_copyrights revision 620a452ebe92fff63e85c5930a6e6dc8d9455918
7a2a1b8b14fc804ac80612d7b98064095e445be5Automatic Updater# Copyright (C) 2004-2007, 2009 Internet Systems Consortium, Inc. ("ISC")
7a42357217528037bdfedcb17eeebfe96ae4266aAutomatic Updater# Copyright (C) 1998-2001, 2003 Internet Software Consortium.
0c39b3ed9409ecb277d5e32fa763a4e4d6598df8Automatic Updater# Permission to use, copy, modify, and/or distribute this software for any
46da3117812814a29432a8d9a9ccf8acdbfdadceAutomatic Updater# purpose with or without fee is hereby granted, provided that the above
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox User# copyright notice and this permission notice appear in all copies.
79b273c187a4aa1016a62181983dfdd0521681aeMark Andrews# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
3349f0044fda807e1fd6681c833d3593a22dad86Tinderbox User# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
b253dcf9668f95e141bce9556dc88e30d3305a1dTinderbox User# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox User# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
bbde8dc56605130058a1540609264fa109da3b63Automatic Updater# PERFORMANCE OF THIS SOFTWARE.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# $Id: merge_copyrights,v 1.35 2009/12/03 04:45:10 marka Exp $
a01aa536188bb3535dfc1107a623e6355a8e6b7cMark Andrewsopen(COPYRIGHTS, "<util/copyrights") || die "can't open ./util/copyrights: $!";
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time());
e130ab53e992670e2a2ecf043976ac09f21358d1Automatic Updateropen(FILES, "$find | sort |") || die "can't start \"$find\": $!";
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater next if (m%/\.\# | # CVS old conflict file
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater # Strip any .in extension to find out the file's real type.
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater # .in files are processed by configure to produce the target file.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater # Contributed code should maintain its own copyright.
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews } elsif ($base =~ /\/openssl-[a-z0-9.]*-patch$/) {
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson } elsif ($base =~ /\/(named|rndc).?\.conf$/) {
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater } elsif ($base =~ /(\/\.cvsignore|\.gif|\.jpg|\.dsp|\.dsw|\.mak)$/i) {
3349f0044fda807e1fd6681c833d3593a22dad86Tinderbox User ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews ($sec,$min,$hour,$mday,$mon,$c_year,$wday,$yday,$isdst) =
3349f0044fda807e1fd6681c833d3593a22dad86Tinderbox User ($sec,$min,$hour,$mday,$mon,$m_year,$wday,$yday,$isdst) =
24bf1e02f03577db0feb50b80238c4150c96d05dAutomatic Updater if ($m_year != $year || $c_year != $year) {
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews print "$_: must set copyright year(s) manually\n";
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews # keep perl from issuing warnings about "used only once"
a01aa536188bb3535dfc1107a623e6355a8e6b7cMark Andrews $dev = $ino = $mode = $nlink = $uid = $gid = $rdev = $size = 0;
b871c7156eb037d41f53828c6fcb9cc876128962Mark Andrews if (! defined($file_years{$_}) || $file_years{$_} eq "????") {
b871c7156eb037d41f53828c6fcb9cc876128962Mark Andrews print "$_: must set copyright year(s) manually\n";
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater # track the modification years even if we are not going to be
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,$atime,$mtime,$ctime,
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater ($sec,$min,$hour,$mday,$mon,$m_year,$wday,$yday,$isdst) =
f132a836c4e386b1af045dd8fe7106ae61b90bffAutomatic Updateropen(NEWCOPYRIGHTS, ">util/newcopyrights") ||