update_copyrights revision 9408328f1d5034e7cb9552e8df1aaf578118f2b5
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# Copyright (C) 2004-2009 Internet Systems Consortium, Inc. ("ISC")
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# Copyright (C) 1998-2001 Internet Software Consortium.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# Permission to use, copy, modify, and/or distribute this software for any
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# purpose with or without fee is hereby granted, provided that the above
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# copyright notice and this permission notice appear in all copies.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# PERFORMANCE OF THIS SOFTWARE.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# $Id: update_copyrights,v 1.55 2010/06/27 23:42:22 marka Exp $
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncrequire 5.002;
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# Map copyright owners to the files containing copyright messages.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# The first line of the copyright message is not in the file;
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# it is constructed by this script.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# Map each copyright owner name to a reference to an array containing
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync# the lines of the copyright message.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsyncmy $keyword_pat = '\$(Id:.*|Revision:.*|Id|Revision)\$';
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync($dummy,$dummy,$dummy,$dummy,$dummy,$this_year,$dummy,$dummy,$dummy) = localtime(time());
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync if (defined($years_list) && $years_list =~ /^PARENT:/) {
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync $parent =~ s/\.[^.]*$/.docbook/;
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync $result = "$result <year>$_</year>\n" foreach (@_);
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync my $a = copyright("Internet Systems Consortium, Inc. (\"ISC\")",
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync # copyright notice is now generated from the source.
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync } elsif ($type =~ /^(SH|PERL|TCL|MAKE|CONF-SH|RNC)$/) {
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync print "$file: type '$type' not supported yet; skipping\n";
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync open(SOURCE, "<$file") || die "can't open $file: $!";
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync last if $_ =~ /\*\//;
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync } elsif (($m4_comment || $zone_comment || $man_comment) &&
$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;
$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;