update_copyrights revision 28b14c4e69aaa4f284218ad3b47ef09e37599318
f659f13d619daf68f78e85c84c5926f56bfe1439Dav Glass# Copyright (C) 2004-2007 Internet Systems Consortium, Inc. ("ISC")
f659f13d619daf68f78e85c84c5926f56bfe1439Dav Glass# Copyright (C) 1998-2001 Internet Software Consortium.
f659f13d619daf68f78e85c84c5926f56bfe1439Dav Glass# Permission to use, copy, modify, and distribute this software for any
f659f13d619daf68f78e85c84c5926f56bfe1439Dav Glass# purpose with or without fee is hereby granted, provided that the above
f659f13d619daf68f78e85c84c5926f56bfe1439Dav Glass# copyright notice and this permission notice appear in all copies.
f659f13d619daf68f78e85c84c5926f56bfe1439Dav Glass# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
f659f13d619daf68f78e85c84c5926f56bfe1439Dav Glass# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
f659f13d619daf68f78e85c84c5926f56bfe1439Dav Glass# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
f659f13d619daf68f78e85c84c5926f56bfe1439Dav Glass# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1a39f990322cff8acb2dc0b760b0d374c8eff399Dav Glass# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1a39f990322cff8acb2dc0b760b0d374c8eff399Dav Glass# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
038c85d1f8981a1d1479152b76a7c47ff219417dDav Glass# PERFORMANCE OF THIS SOFTWARE.
1a39f990322cff8acb2dc0b760b0d374c8eff399Dav Glass# $Id: update_copyrights,v 1.48 2007/01/05 05:56:05 marka Exp $
1a39f990322cff8acb2dc0b760b0d374c8eff399Dav Glassrequire 5.002;
1a39f990322cff8acb2dc0b760b0d374c8eff399Dav Glass# Map copyright owners to the files containing copyright messages.
1a39f990322cff8acb2dc0b760b0d374c8eff399Dav Glass# The first line of the copyright message is not in the file;
1a39f990322cff8acb2dc0b760b0d374c8eff399Dav Glass# it is constructed by this script.
my $f = $owner2filename{$owner};
@copyright_text = <COPYRIGHT>;
$owner2text{$owner} = [ @copyright_text ];
my $years_list;
my $parent;
$file_types{$file} = $type;
$file_years{$file} = $years;
$parent = $_[0];
$parent = $_[0];
my $holder = shift;
return $result;
$textp = $owner2text{$owner};
$c_comment = 0;
$shell_comment = 0;
$m4_comment = 0;
$sgml_comment = 0;
$zone_comment = 0;
$man_comment = 0;
$c_comment = 1;
$shell_comment = 1;
$zone_comment = 1;
$man_comment = 1;
$m4_comment = 1;
$sgml_comment = 1;
$_ = <SOURCE>;
$_ = <SOURCE>;
$_ = <SOURCE>;
last if $_ =~ /\*\//;
$_ = <SOURCE>;
$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;
$last_year = $year;
$firstline =~ s/\@SYSYEARS\@/$sysyears/;
$secondline =~ s/\@SFTYEARS\@/$sftyears/;
$thirdline =~ s/\@NOMYEARS\@/$nomyears/;
print TARGET $secondline =~ /^$/ ? $nonspaceprefix : $prefix;
print TARGET $thirdline =~ /^$/ ? $nonspaceprefix : $prefix;
print TARGET $end_comment if $end_comment;
undef $/;
$_ = <SOURCE>;
s:<articleinfo>.*?</articleinfo>:<articleinfo>\n$r </articleinfo>:s;
print TARGET $_;