merge_copyrights revision f7a6d4f915ce622d988916397f313b33ae954afc
#
# Copyright (C) 2004-2007, 2009-2015 Internet Systems Consortium, Inc. ("ISC")
# Copyright (C) 1998-2001, 2003 Internet Software Consortium.
#
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $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.
} 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++;
}
}
}
}
}