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