merge_copyrights revision 2320f230995995595438a9d9301d84931fd266ce
#
# Copyright (C) 2004-2006 Internet Systems Consortium, Inc. ("ISC")
# Copyright (C) 1998-2001, 2003 Internet Software Consortium.
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: merge_copyrights,v 1.28 2006/12/22 01:49:46 marka Exp $
%file_types = ();
%file_years = ();
while (<COPYRIGHTS>) {
$file_types{$file} = $type;
$file_years{$file} = $years;
}
$year += 1900;
$find = "find . -type f -print";
while (<FILES>) {
next if (m%/\.\# | # CVS old conflict file
/CVS/ | # CVS directory
util/newcopyrights | # our output
\.bak$ | # created by update_copyrights
%x);
# Strip any .in extension to find out the file's real type.
# .in files are processed by configure to produce the target file.
# Contributed code should maintain its own copyright.
} else {
}
$c_year += 1900;
$m_year += 1900;
print "$_: must set copyright year(s) manually\n";
} else {
}
# keep perl from issuing warnings about "used only once"
} else {
print "$_: must set copyright year(s) manually\n";
next;
}
# track the modification years even if we are not going to be
# updating the copyrights.
# next if $file_types{$_} eq "X";
$has_current = 0;
$has_current = 1;
}
}
$m_year += 1900;
}
}
}
}
die "can't open newcopyrights: $!";
$tabs = 1;
} else {
$tabs++;
}
}
}
}