2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-03 04:36:36 +00:00

commandref_join.pl: speed up processing with "-noWarnings" (Forum #105079)

git-svn-id: https://svn.fhem.de/fhem/trunk@20690 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2019-12-08 17:10:14 +00:00
parent c9d4b281c7
commit ba16120542

View File

@ -173,9 +173,19 @@ generateModuleCommandref($$;$$)
} 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/<a name="$mod"/) if(!$hasLink);
foreach $tag (TAGS) {
if($l =~ m/<$tag ([^>]+)>/i) {
@ -194,15 +204,6 @@ generateModuleCommandref($$;$$)
$llwct{$tag} = $line if(!$tagcount{$tag});
}
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);
}
}
}
}
close($modFh);