update_copyrights revision 855bda3de3bf5d55288f7a1dc57df58b5ac780b0
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Copyright (C) 1998-2000 Internet Software Consortium.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Permission to use, copy, modify, and distribute this software for any
843e19887f64dde75055cf8842fc4db2171eff45johnlev# purpose with or without fee is hereby granted, provided that the above
843e19887f64dde75055cf8842fc4db2171eff45johnlev# copyright notice and this permission notice appear in all copies.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
843e19887f64dde75055cf8842fc4db2171eff45johnlev# ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
843e19887f64dde75055cf8842fc4db2171eff45johnlev# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
843e19887f64dde75055cf8842fc4db2171eff45johnlev# CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
843e19887f64dde75055cf8842fc4db2171eff45johnlev# DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
843e19887f64dde75055cf8842fc4db2171eff45johnlev# PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
843e19887f64dde75055cf8842fc4db2171eff45johnlev# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
843e19887f64dde75055cf8842fc4db2171eff45johnlev# $Id: update_copyrights,v 1.16 2000/07/03 17:39:23 gson Exp $
843e19887f64dde75055cf8842fc4db2171eff45johnlevrequire 5.002;
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Map copyright owners to the files containing copyright messages.
b26a64ae582e72d0b4c710cd8eba9c4afd4a9fddjohnlev# The first line of the copyright message is not in the file;
843e19887f64dde75055cf8842fc4db2171eff45johnlev# it is constructed by this script.
843e19887f64dde75055cf8842fc4db2171eff45johnlev# Map each copyright owner name to a reference to an array containing
843e19887f64dde75055cf8842fc4db2171eff45johnlev# the lines of the copyright message.
843e19887f64dde75055cf8842fc4db2171eff45johnlev print "$file: type '$type' not supported yet; skipping\n";
843e19887f64dde75055cf8842fc4db2171eff45johnlev open(SOURCE, "<$file") || die "can't open $file: $!";
843e19887f64dde75055cf8842fc4db2171eff45johnlev print "$file: unexpected yacc file start (expected \"%{\\n\")\n";
843e19887f64dde75055cf8842fc4db2171eff45johnlev } elsif (($m4_comment || $zone_comment || $man_comment) &&
843e19887f64dde75055cf8842fc4db2171eff45johnlev last if s/.*-->//;
843e19887f64dde75055cf8842fc4db2171eff45johnlev print "$file: unterminated comment\n" unless defined($_);
843e19887f64dde75055cf8842fc4db2171eff45johnlev # Not very maintainable, but suitable enough for now.
843e19887f64dde75055cf8842fc4db2171eff45johnlev /Permission to use, copy, modify, and distribute / ||
843e19887f64dde75055cf8842fc4db2171eff45johnlev open(TARGET, ">$file.new") || die "can't open $file.new: $!";
843e19887f64dde75055cf8842fc4db2171eff45johnlev print "$file: noncontiguous year: $year != $last_year + 1\n";
843e19887f64dde75055cf8842fc4db2171eff45johnlev print TARGET $first if $first !~ /^\s*$/;
843e19887f64dde75055cf8842fc4db2171eff45johnlev rename("$file", "$file.bak") || die "rename($file, $file.bak): $!";