merge_copyrights revision 93ca8abdf86dfe69d40c0bc5389151e0672780af
#
# Copyright (C) 1998-2001, 2003-2007, 2009-2018 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# $Id$
use strict;
my %file_types = ();
my %file_years = ();
my %exists = ();
while (<COPYRIGHTS>) {
$file_types{$file} = $type;
$file_years{$file} = $years;
}
$year += 1900;
while (<FILES>) {
$exists{$_} = 1;
}
while (<CHANGES>) {
# this file isn't in the repository now
next if (m%/\.\# | # CVS old conflict file
/CVS/ | # CVS directory
/.git/ | # git directory
util/newcopyrights | # our output
\.bak$ | # created by update_copyrights
%x);
# Strip any .in extension to find out the file's real type.
# .in files are processed by configure to produce the target file.
my $base;
# Contributed code should maintain its own copyright.
$base =~ s/\.[0-9]$//;
} else {
}
print "$_: must set copyright year(s) manually\n";
} else {
}
} else {
print "$_: must set copyright year(s) manually\n";
next;
}
# track the modification years even if we are not going to be
# updating the copyrights.
# next if $file_types{$_} eq "X";
my $has_current = 0;
$has_current = 1;
}
}
}
}
}
die "can't open newcopyrights: $!";
my $tabs = 0;
$tabs = 1;
} else {
$tabs++;
}
}
}
}
}