update_copyrights revision a809c57ab263613c79999653ad28fbe47fa4bfa3
faaa489e1cc905efd364e01fe09111173c95db68jeff.schenk# Copyright (C) 1998-2001, 2004-2010, 2012-2016 Internet Systems Consortium, Inc. ("ISC")
faaa489e1cc905efd364e01fe09111173c95db68jeff.schenk# This Source Code Form is subject to the terms of the Mozilla Public
faaa489e1cc905efd364e01fe09111173c95db68jeff.schenk# License, v. 2.0. If a copy of the MPL was not distributed with this
faaa489e1cc905efd364e01fe09111173c95db68jeff.schenk# file, You can obtain one at http://mozilla.org/MPL/2.0/.
faaa489e1cc905efd364e01fe09111173c95db68jeff.schenkrequire 5.002;
faaa489e1cc905efd364e01fe09111173c95db68jeff.schenk# Map copyright owners to the files containing copyright messages.
faaa489e1cc905efd364e01fe09111173c95db68jeff.schenk# The first line of the copyright message is not in the file;
faaa489e1cc905efd364e01fe09111173c95db68jeff.schenk# it is constructed by this script.
faaa489e1cc905efd364e01fe09111173c95db68jeff.schenk# Map each copyright owner name to a reference to an array containing
faaa489e1cc905efd364e01fe09111173c95db68jeff.schenk# the lines of the copyright message.
faaa489e1cc905efd364e01fe09111173c95db68jeff.schenkmy $keyword_pat = '\$(Id:.*|Revision:.*|Id|Revision)\$';
faaa489e1cc905efd364e01fe09111173c95db68jeff.schenk open(COPYRIGHT, "<$f") || die "can't open $f: $!";
faaa489e1cc905efd364e01fe09111173c95db68jeff.schenk($dummy,$dummy,$dummy,$dummy,$this_month,$this_year,$dummy,$dummy,$dummy) = localtime(time());
dbcf55756e293292dfbfbb75fe317dd094b0585fjeff.schenk if (defined($years_list) && $years_list =~ /^PARENT:/) {
faaa489e1cc905efd364e01fe09111173c95db68jeff.schenk $parent =~ s/\.[^.]*$/.docbook/;
dbcf55756e293292dfbfbb75fe317dd094b0585fjeff.schenk $result = "$result <year>$_</year>\n" foreach (@_);
faaa489e1cc905efd364e01fe09111173c95db68jeff.schenk my $a = copyright("Internet Systems Consortium, Inc. (\"ISC\")", @_);
faaa489e1cc905efd364e01fe09111173c95db68jeff.schenk # copyright notice is now generated from the source.
dbcf55756e293292dfbfbb75fe317dd094b0585fjeff.schenk my ($type, $owner) = split(/\./, $typeandowner);
$_ = $body;
print TARGET $_;
$c_comment = 0;
$shell_comment = 0;
$m4_comment = 0;
$sgml_comment = 0;
$mkd_comment = 0;
$zone_comment = 0;
$man_comment = 0;
$python_comment = 0;
$python_bin_comment = 0;
$c_comment = 1;
$shell_comment = 1;
$python_bin_comment = 1;
$python_comment = 1;
$zone_comment = 1;
$man_comment = 1;
$m4_comment = 1;
$sgml_comment = 1;
$mkd_comment = 1;
$_ = <SOURCE>;
$_ = <SOURCE>;
$_ = <SOURCE>;
last if $_ =~ /\*\//;
$_ = <SOURCE>;
$first = $_;
last;
$first = $_;
$_ = <SOURCE>;
$_ = <SOURCE> if $_ eq "############################################################################\n";
$_ = <SOURCE> if $_ eq "############################################################################\n";
$first = $_;
last;
$first = $_;
$_ = <SOURCE>;
$first = $_;
last;
$_ = <SOURCE>;
$_ = <SOURCE>;
$_ = <SOURCE>;
last;
$_ = <SOURCE>;
$_ = <SOURCE>;
$_ = <SOURCE>;
last if s/.*-->//;
$_ = <SOURCE>;
$first = $_;
$first = $_;
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;
my $andor = 0;
my $noid = 0;
$last_year = $year;
print TARGET $end_comment if $end_comment;
$_ = $body;
$_ = $body;
undef $/;
$_ = <SOURCE>;
s:<articleinfo>.*?</articleinfo>:<articleinfo>\n$r </articleinfo>:s;