update_copyrights revision c61c6db1cea02006815184845fcf1b633b28163d
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Copyright (C) 1998-2001 Internet Software Consortium.
99653d4ee642c6528e88224f12409a5f23060994eschrock# Permission to use, copy, modify, and distribute this software for any
fa9e4066f08beec538e775443c5be79dd423fcabahrens# purpose with or without fee is hereby granted, provided that the above
fa9e4066f08beec538e775443c5be79dd423fcabahrens# copyright notice and this permission notice appear in all copies.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
fa9e4066f08beec538e775443c5be79dd423fcabahrens# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
fa9e4066f08beec538e775443c5be79dd423fcabahrens# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
fa9e4066f08beec538e775443c5be79dd423fcabahrens# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
fa9e4066f08beec538e775443c5be79dd423fcabahrens# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
fa9e4066f08beec538e775443c5be79dd423fcabahrens# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
fa9e4066f08beec538e775443c5be79dd423fcabahrens# PERFORMANCE OF THIS SOFTWARE.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# $Id: update_copyrights,v 1.37 2005/05/12 08:08:44 marka Exp $
fa9e4066f08beec538e775443c5be79dd423fcabahrensrequire 5.002;
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Map copyright owners to the files containing copyright messages.
d87468da622d0a816b26cc636aa7dcc08249300erm# The first line of the copyright message is not in the file;
fa9e4066f08beec538e775443c5be79dd423fcabahrens# it is constructed by this script.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Map each copyright owner name to a reference to an array containing
fa9e4066f08beec538e775443c5be79dd423fcabahrens# the lines of the copyright message.
fa9e4066f08beec538e775443c5be79dd423fcabahrensmy $keyword_pat = '\$(Id:.*|Revision:.*|Id|Revision)\$';
fa9e4066f08beec538e775443c5be79dd423fcabahrens if (defined($years_list) && $years_list =~ /^PARENT:/) {
fa9e4066f08beec538e775443c5be79dd423fcabahrens $parent =~ s/\.[^.]*$/.docbook/;
99653d4ee642c6528e88224f12409a5f23060994eschrock $result = "$result <year>$_</year>\n" foreach (@_);
d5b4fe4dcc1b674d5e848db057a30cf882f73b22dougm my $a = copyright("Internet Systems Consortium, Inc. (\"ISC\")",
f3861e1a2ceec23a5b699c24d814b7775a9e0b52ahl print "$file: type '$type' not supported yet; skipping\n";
fa9e4066f08beec538e775443c5be79dd423fcabahrens open(SOURCE, "<$file") || die "can't open $file: $!";
fa9e4066f08beec538e775443c5be79dd423fcabahrens last if $_ =~ /\*\//;
3a55fc6b85230272df26c2c8c82f1176c0503e3arm } elsif (($m4_comment || $zone_comment || $man_comment) &&
f3861e1a2ceec23a5b699c24d814b7775a9e0b52ahl last if s/.*-->//;
3d7934e1eaaab784a1928c5c9bdb6273eeb7275drm /Permission to use, copy, modify, and / ||
3d7934e1eaaab784a1928c5c9bdb6273eeb7275drm open(TARGET, ">$file.new") || die "can't open $file.new: $!";
fa9e4066f08beec538e775443c5be79dd423fcabahrens ($firstline, $secondline, $thirdline, @otherlines) = @$textp;
b12a1c38fc215cc54fa6014069fd2b8dbb496646lling print TARGET $secondline =~ /^$/ ? $nonspaceprefix : $prefix;
b12a1c38fc215cc54fa6014069fd2b8dbb496646lling print TARGET $thirdline =~ /^$/ ? $nonspaceprefix : $prefix;
94de1d4cf6ec0a3bf040dcc4b8df107c4ed36b51eschrock if ($type eq 'SGML' && m:<docinfo>.*?</docinfo>:s) {
94de1d4cf6ec0a3bf040dcc4b8df107c4ed36b51eschrock s:<docinfo>.*?</docinfo>:<docinfo>\n$r </docinfo>:s;
94de1d4cf6ec0a3bf040dcc4b8df107c4ed36b51eschrock if ($type eq 'SGML' && m:<bookinfo>.*?</bookinfo>:s) {
fa9e4066f08beec538e775443c5be79dd423fcabahrens s:<bookinfo>.*?</bookinfo>:<bookinfo>\n$r </bookinfo>:s;
e9dbad6f263d5570ed7ff5443ec5b958af8c24d7eschrock print TARGET $first if $first !~ /^\s*$/;