return "$a";
}
+my $ret = 0;
+
foreach $file (keys %file_types) {
$typeandowner = $file_types{$file};
$years_list = $file_years{$file};
if ( ! -f $file ) {
- print "$file: missing\n";
+ print "$file: missing\n";
+ $ret++;
next;
}
# print "Doing: $file";
getyears($years_list);
if (!defined $years_list) {
print "$file: has bad parent $parent\n";
+ $ret++;
next;
}
}
docbook($file);
if (!defined $years_list) {
print "$file: has bad parent $parent\n";
+ $ret++;
next;
}
}
$textp = $owner2text{$owner};
if (!defined $textp) {
print "$file: unknown copyright owner $owner\n";
+ $ret++;
next;
}
$prefix = "";
} else {
print "$file: type '$type' not supported yet; skipping\n";
+ $ret++;
next;
}
print "$file: unexpected yacc file start ",
"(expected \"%{\\n\")\n";
close(SOURCE);
+ $ret++;
next;
}
$before_copyright = "$_";
if ($_ !~ /[Cc]opyright/) {
print "$file: non-copyright comment\n";
close(SOURCE);
+ $ret++;
next;
}
if ($_ !~ /\*\//) {
if ($_ !~ /[Cc]opyright/) {
print "$file: non-copyright comment\n";
close(SOURCE);
+ $ret++;
next;
}
while (<SOURCE>) {
if ($_ !~ /[Cc]opyright/) {
print "$file: non-copyright comment\n";
close(SOURCE);
+ $ret++;
next;
}
while (<SOURCE>) {
if ($_ !~ /[Cc]opyright/) {
print "$file: non-copyright comment\n";
close(SOURCE);
+ $ret++;
next;
}
while (<SOURCE>) {
if ($_ !~ /[Cc]opyright/) {
print "$file: non-copyright comment\n";
close(SOURCE);
+ $ret++;
next;
}
while (defined($_)) {
if ($_ !~ /[Cc]opyright/) {
print "$file: non-copyright comment\n";
close(SOURCE);
+ $ret++;
next;
}
while (defined($_)) {
or die "rename($file.new, $file): $!";
}
}
+
+exit $ret;