" if($fh);
} elsif(!$skip) {
print $fh $l if($fh);
if($l =~ m,INSERT_DOC_FROM: ([^ ]+)/([^ /]+) ,) {
my ($dir, $re) = ($1, $2);
if(opendir(DH, $dir)) {
foreach my $file (grep { m/^$2$/ } readdir(DH)) {
generateModuleCommandref("$dir/$file", $lang, $fh, 1);
}
closedir(DH);
}
}
chkAndGenLangLinks($l, $lang, $fh);
$docCount++;
next if($noWarnings);
$hasLink = ($l =~ m/]+)>/i) {
print "*** $lang $mod line $line: $tag with attributes".
" is not allowed\n"
if(!$noWarnings);
}
$tagcount{$tag} +=()= ($l =~ /<$tag( [^>]+)?>/gi);
$tagcount{$tag} -=()= ($l =~ /<\/$tag>/gi);
if($tagcount{$tag} < 0) {
print "*** $lang $fPath: negative tagcount for $tag, line $line\n"
if(!$noWarnings);
$tagcount{$tag} = 0;
}
$llwct{$tag} = $line if(!$tagcount{$tag});
}
}
}
close($modFh);
print "*** $lang $fPath: ignoring text due to DOS encoding\n"
if($dosMode);
# TODO: add doc to each $jsfile
print "*** $lang $fPath: No document text found\n"
if(!$jsFile && !$suffix && !$docCount && !$dosMode &&
$fPath !~ m,/99_, && !$noWarnings);
if(!$jsFile && $suffix && !$docCount && !$dosMode) {
if($lang eq "DE" && $fh) {
print $fh <