update_copyrights revision 19ba7857f6bf38619eda1f1dae0eb05a6cdd2b77
75c0816e8295e180f4bc7f10db3d0d880383bc1cMark Andrews# Copyright (C) 1998, 1999 Internet Software Consortium.
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# Permission to use, copy, modify, and distribute this software for any
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# purpose with or without fee is hereby granted, provided that the above
0b062f4990db5cc6db2fe3398926f71b92a67407Brian Wellington# copyright notice and this permission notice appear in all copies.
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
9016767f4e15191b7c763b8a4ad36a57dc2705a2Mark Andrews# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein die "usage: update_copyrights <copyright_text>";
b272d38cc5d24f64c0647a9afb340c21c4b9aaf7Evan Huntopen(COPYRIGHT, "<$ARGV[0]") || die "can't open $ARGV[0]: $!";
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein } elsif ($type eq "SH" || $type eq "PERL" || $type eq "MAKE") {
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein print "$file: type '$type' not supported yet; skipping\n";
731cc132f22dbc9e0ecd7035dce314a61076d31bAutomatic Updater open(SOURCE, "<$file") || die "can't open $file: $!";
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein 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): $!";