update_copyrights revision c651f15b30f1dae5cc2f00878fb5da5b3a35a468
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# Copyright (C) 1998-2001 Internet Software Consortium.
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# Permission to use, copy, modify, and distribute this software for any
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# purpose with or without fee is hereby granted, provided that the above
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# copyright notice and this permission notice appear in all copies.
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# PERFORMANCE OF THIS SOFTWARE.
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# $Id: update_copyrights,v 1.33 2005/04/07 03:50:05 marka Exp $
d62bc4badc1c1f1549c961cfb8b420e650e1272byzrequire 5.002;
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# Map copyright owners to the files containing copyright messages.
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# The first line of the copyright message is not in the file;
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# it is constructed by this script.
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# Map each copyright owner name to a reference to an array containing
d62bc4badc1c1f1549c961cfb8b420e650e1272byz# the lines of the copyright message.
d62bc4badc1c1f1549c961cfb8b420e650e1272byz $parent =~ s/\.[^.]*$/.docbook/;
d62bc4badc1c1f1549c961cfb8b420e650e1272byz print "$file: type '$type' not supported yet; skipping\n";
d62bc4badc1c1f1549c961cfb8b420e650e1272byz last if $_ =~ /\*\//;
d62bc4badc1c1f1549c961cfb8b420e650e1272byz } elsif (($m4_comment || $zone_comment || $man_comment) &&
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng last if s/.*-->//;
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng open(TARGET, ">$file.new") || die "can't open $file.new: $!";
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng print TARGET $before_copyright if $before_copyright;
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng if ($last_year != 0 && $year == $last_year + 1) {
d62bc4badc1c1f1549c961cfb8b420e650e1272byz ($firstline, $secondline, $thirdline, @otherlines) = @$textp;
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng print TARGET $secondline =~ /^$/ ? $nonspaceprefix : $prefix;
da14cebe459d3275048785f25bd869cb09b5307fEric Cheng print TARGET $thirdline =~ /^$/ ? $nonspaceprefix : $prefix;
d62bc4badc1c1f1549c961cfb8b420e650e1272byz print TARGET $first if $first !~ /^\s*$/;