update_copyrights revision 9640c35421ba0bb4af6b6bfbff695d2a0ac560b3
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# Copyright (C) 2004-2010, 2012 Internet Systems Consortium, Inc. ("ISC")
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# Copyright (C) 1998-2001 Internet Software Consortium.
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# Permission to use, copy, modify, and/or distribute this software for any
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# purpose with or without fee is hereby granted, provided that the above
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# copyright notice and this permission notice appear in all copies.
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1633838b8255282d10af15c5c84cee5a51466712Bob Halley# PERFORMANCE OF THIS SOFTWARE.
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halleyrequire 5.002;
c50fd34a4e0e6978f8ca5f6f3ad8545549c3cfeeBob Halley# Map copyright owners to the files containing copyright messages.
29747dfe5e073a299b3681e01f5c55540f8bfed7Mark Andrews# The first line of the copyright message is not in the file;
ab023a65562e62b85a824509d829b6fad87e00b1Rob Austein# it is constructed by this script.
25e43e68b7431d5e4ff8b5427108cd7f5f9bcf3eBob Halley# Map each copyright owner name to a reference to an array containing
25e43e68b7431d5e4ff8b5427108cd7f5f9bcf3eBob Halley# the lines of the copyright message.
b6309ed962c4988a314d61742c4fbc4935467d68Mark Andrewsmy $keyword_pat = '\$(Id:.*|Revision:.*|Id|Revision)\$';
125d72976ab6b8fa6629a5ace276a86e9fef91acBrian Wellington open(COPYRIGHT, "<$f") || die "can't open $f: $!";
125d72976ab6b8fa6629a5ace276a86e9fef91acBrian Wellington($dummy,$dummy,$dummy,$dummy,$this_month,$this_year,$dummy,$dummy,$dummy) = localtime(time());
125d72976ab6b8fa6629a5ace276a86e9fef91acBrian Wellington if (defined($years_list) && $years_list =~ /^PARENT:/) {
b55c30f2de6e1baaa3a9ba69b92f428f2c255ac3Mark Andrews $parent =~ s/\.[^.]*$/.docbook/;
ccad3c9ecbe8a1060ff7b407a318ccd592de536eBrian Wellington $result = "$result <year>$_</year>\n" foreach (@_);
8224be5129daebea8f0f5e8be5f925679ec893f1Brian Wellington $result = "$result <holder>$holder</holder>\n";
cd02757774252fe5b92dbd59a24b34721fb49ff4Bob Halley my $a = copyright("Internet Systems Consortium, Inc. (\"ISC\")",
7b4dcbb89b71b17f5c16ca19a0e705e09509f063Bob Halley my $b = copyright("Internet Software Consortium.",
5ea0d11ca45bfd1ea9db8db07f18fbb02f500661Brian Wellington # copyright notice is now generated from the source.
5bd76af084edfdcd1cb4db9453ac781d32dde6f7Mark Andrews my ($type, $owner) = split(/\./, $typeandowner);
182a34004c7c48e2c1626f3ce7e787f413955126Mark Andrews print "$file: unknown copyright owner $owner\n";
25e43e68b7431d5e4ff8b5427108cd7f5f9bcf3eBob Halley } elsif ($type =~ /^(SH|PERL|TCL|MAKE|CONF-SH|RNC)$/) {
25e43e68b7431d5e4ff8b5427108cd7f5f9bcf3eBob Halley $start_comment = "############################################################################\n";
25e43e68b7431d5e4ff8b5427108cd7f5f9bcf3eBob Halley $end_comment = "############################################################################\n"
09f22ac5b09e70bc526015f37168ba33e21ea91fDavid Lawrence } elsif ($type eq "HTML" || $type eq "SGML") {
09f22ac5b09e70bc526015f37168ba33e21ea91fDavid Lawrence print "$file: type '$type' not supported yet; skipping\n";
$_ = <SOURCE>;
$_ = <SOURCE>;
$_ = <SOURCE>;
last if $_ =~ /\*\//;
$_ = <SOURCE>;
$first = $_;
last;
$first = $_;
$_ = <SOURCE>;
$_ = <SOURCE> if $_ eq "############################################################################\n";
$first = $_;
last;
$first = $_;
$_ = <SOURCE>;
$first = $_;
last;
$_ = <SOURCE>;
$_ = <SOURCE>;
$_ = <SOURCE>;
last if s/.*-->//;
$_ = <SOURCE>;
$first = $_;
$first = $_;
/Permission to use, copy, modify, and / ||
$first = $_;
$first = $_;
print TARGET $before_copyright if $before_copyright;
print TARGET $start_comment if $start_comment;
$last_year = 0;
$anchor_year = 0;
$last_year = $year;
$last_year = 0;
$anchor_year = 0;
$last_year = $year;
$last_year = 0;
$anchor_year = 0;
my $andor = 0;
my $noid = 0;
$last_year = $year;
$firstline =~ s/\@SYSYEARS\@/$sysyears/;
$secondline =~ s/\@SFTYEARS\@/$sftyears/;
print TARGET $secondline =~ /^$/ ? $nonspaceprefix : $prefix;
print TARGET $end_comment if $end_comment;
$_ = $body;
undef $/;
$_ = <SOURCE>;
s:<articleinfo>.*?</articleinfo>:<articleinfo>\n$r </articleinfo>:s;