update_copyrights revision f4a7d04843eb62c92f2d4ff338da49ae86e3279b
33cc94f04cb44dc247f605a954e45e5adc699977Automatic Updater# Copyright (C) 1998-2000 Internet Software Consortium.
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# Permission to use, copy, modify, and distribute this software for any
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# purpose with or without fee is hereby granted, provided that the above
178f6ad061e54bc5babfca3577f72058fa0797c1Bob Halley# copyright notice and this permission notice appear in all copies.
40f53fa8d9c6a4fc38c0014495e7a42b08f52481David Lawrence# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# INTERNET SOFTWARE CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT,
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
dafcb997e390efa4423883dafd100c975c4095d6Mark Andrews# WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
f5cfcbf2f7906fb59c2b8b9b8fc9c7a75ac44dabMark Andrews# $Id: update_copyrights,v 1.19 2000/08/01 00:46:14 tale Exp $
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halleyrequire 5.002;
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# Map copyright owners to the files containing copyright messages.
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# The first line of the copyright message is not in the file;
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley# it is constructed by this script.
b897c52f865b2fc4e220e2110b874e59c716456bBob Halley# Map each copyright owner name to a reference to an array containing
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence# the lines of the copyright message.
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence open(COPYRIGHT, "<$f") || die "can't open $f: $!";
460b427411b72da26b1836b9424e2e70d65d9394David Lawrence ($file, $typeandowner, $years_list) = split(/\s+/);
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark Andrews my ($type, $owner) = split(/\./, $typeandowner);
dabea86dac4c01f852b7aea728f73b4f55a89d44Mark Andrews print "$file: unknown copyright owner $owner\n";
12e63bfe1d111ccb57f482b28d56c785cccc7cf7David Lawrence } elsif ($type =~ /^(SH|PERL|MAKE|CONF-SH)/) {
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley print "$file: type '$type' not supported yet; skipping\n";
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley open(SOURCE, "<$file") || die "can't open $file: $!";
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley last if $_ =~ /\*\//;
0b72c791466d0807bcf22522b5ddb7da902c2720Bob Halley } elsif (($m4_comment || $zone_comment || $man_comment) &&
$before_copyright = $_;
$_ = <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;
$firstline =~ s/\@YEARS\@/$years/;
print TARGET $end_comment if $end_comment;
undef $/;
$_ = <SOURCE>;
print TARGET $_;