merge_copyrights revision 5c144477062a5df657acee41a82051d38537fd38
75c0816e8295e180f4bc7f10db3d0d880383bc1cMark Andrews# Copyright (C) 2004-2007, 2009-2015 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 Austeinopen(COPYRIGHTS, "<util/copyrights") || die "can't open ./util/copyrights: $!";
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Usermy ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = gmtime(time());
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User$sec = $min = $hour = $mday = $mon = $wday = $yday = $isdst = 0;
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinopen(FILES, "git ls-files | sed 's;^;./;' |") || die "git ls-files: $!";
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Useropen(CHANGES, "sh util/recent_changes.sh |") || die "recent_changes.sh: $!";
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein # Strip any .in extension to find out the file's real type.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # .in files are processed by configure to produce the target file.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User # Contributed code should maintain its own copyright.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein } elsif ($base =~ /\/openssl-[a-z0-9.]*-patch$/) {
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User } elsif ($base =~ /\/(named|rndc|good|bad).{0,2}\.conf$/) {
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User } elsif ($base =~ /\/checkconf\/(good|bad)-.*\.conf$/) {
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User } elsif ($base =~ /(\/\.gitignore|Atffile|\.(gif|jpg))$/i) {
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User } elsif ($base =~ /\.(def|dep|dsp|dsw|mak|sln)$/i) {
6bcac4b58d16ee91184a72bd4ff05c41538fd932Tinderbox User } elsif ($base =~ /\.(vcxproj(|\.(user|filters)))$/i) {
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User print "$_: must set copyright year(s) manually\n";
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User if (! defined($file_years{$_}) || $file_years{$_} eq "????") {
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User print "$_: must set copyright year(s) manually\n";
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User # track the modification years even if we are not going to be
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User printf NEWCOPYRIGHTS "%s\t%s\n", $file_types{$file}, $file_years{$file};
0eea9763d88e3edf9b6de585f7cfbb08de977124Tinderbox User if (($file_years{$file} eq "????") || ($file_types{$file} eq "?")) {