update_copyrights revision e6d6ce00e2bf0f6a755f8229212e35706e4035ae
32098293b78922a5fbd10906afa28624820d3756Tinderbox User# Copyright (C) 1998, 1999 Internet Software Consortium.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Permission to use, copy, modify, and distribute this software for any
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# purpose with or without fee is hereby granted, provided that the above
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# copyright notice and this permission notice appear in all copies.
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein die "usage: update_copyrights <copyright_text>";
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinopen(COPYRIGHT, "<$ARGV[0]") || die "can't open $ARGV[0]: $!";
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User } elsif ($type eq "SH" || $type eq "PERL" || $type eq "MAKE") {
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein print "$file: type '$type' not supported yet; skipping\n";
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein open(SOURCE, "<$file") || die "can't open $file: $!";
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User open(TARGET, ">$file.new") || die "can't open $file.new: $!";
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein print TARGET " Internet Software Consortium.\n";
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein rename("$file", "$file.bak") || die "rename($file, $file.bak): $!";
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein rename("$file.new", "$file") || die "rename($file.new, $file): $!";