2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00

handle very short source files

This commit is contained in:
Mark Andrews
2010-06-27 23:42:22 +00:00
parent 56a67f949b
commit 9408328f1d

View File

@@ -15,7 +15,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: update_copyrights,v 1.54 2009/06/12 04:04:38 marka Exp $
# $Id: update_copyrights,v 1.55 2010/06/27 23:42:22 marka Exp $
require 5.002;
@@ -484,7 +484,8 @@ foreach $file (keys %file_types) {
$end = "\n";
}
if ($first !~ /$keyword_pat/ && $_ !~ /$keyword_pat/) {
if ($first !~ /$keyword_pat/ &&
(!defined($_) || $_ !~ /$keyword_pat/)) {
$end = "\n$nonspaceprefix" if ($type eq "MAN");
print TARGET "$start\$";
print TARGET "Id";
@@ -492,7 +493,7 @@ foreach $file (keys %file_types) {
}
print TARGET $first if $first !~ /^\s*$/;
print TARGET $_;
print TARGET $_ if (defined($_));
}
close(TARGET);
close(SOURCE);