merge_copyrights revision 2d9bd38ec3fbbfe920757b8972d94f664a9b354b
7a2a1b8b14fc804ac80612d7b98064095e445be5Automatic Updater# Copyright (C) 2004-2007, 2009-2012 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
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater# copyright notice and this permission notice appear in all copies.
79b273c187a4aa1016a62181983dfdd0521681aeMark Andrews# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# 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,
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater# PERFORMANCE OF THIS SOFTWARE.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsopen(COPYRIGHTS, "<util/copyrights") || die "can't open ./util/copyrights: $!";
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updatermy ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) = localtime(time());
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater$sec = $min = $hour = $mday = $mon = $wday = $yday = $isdst = 0;
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updateropen(FILES, "git ls-files | sed 's;^;./;' |") || die "git ls-files: $!";
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic Updateropen(CHANGES, "sh util/recent_changes.sh |") || die "recent_changes.sh: $!";
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater next if (m%/\.\# | # CVS old conflict file
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater # Strip any .in extension to find out the file's real type.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews # .in files are processed by configure to produce the target file.
930f6069e5aa157cf6987cdafd412f5757a5a558Automatic Updater # Contributed code should maintain its own copyright.
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater } elsif ($base =~ /\.\/unit\/atf-src\//) {
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater } elsif ($base =~ /\/openssl-[a-z0-9.]*-patch$/) {
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont } elsif ($base =~ /\/(named|rndc|good|bad).{0,2}\.conf$/) {
a308b69ac66fadf66863484f301314d6e6a3f1d2Automatic Updater } elsif ($base =~ /(\/\.gitignore|\.gif|\.jpg|\.dsp|\.dsw|\.mak)$/i) {
24bf1e02f03577db0feb50b80238c4150c96d05dAutomatic Updater print "$_: must set copyright year(s) manually\n";
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater if (! defined($file_years{$_}) || $file_years{$_} eq "????") {
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater print "$_: must set copyright year(s) manually\n";
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews # track the modification years even if we are not going to be
8f2c45a35dd8c40bcc9caba8f7d40ce64fc27bcdAutomatic Updateropen(NEWCOPYRIGHTS, ">util/newcopyrights") ||
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updaterforeach my $file (sort(keys(%file_types))) {
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater printf NEWCOPYRIGHTS "%s\t%s\n", $file_types{$file}, $file_years{$file};
3f616e6f846be57b1717c6beaba0f74de9d5a7c6Automatic Updater if (($file_years{$file} eq "????") || ($file_types{$file} eq "?")) {
8f2c45a35dd8c40bcc9caba8f7d40ce64fc27bcdAutomatic Updater print "Unknown file type or year: $file\n";