From: Dietmar Maurer Date: Sat, 15 Oct 2016 08:55:20 +0000 (+0200) Subject: scan-adoc-refs: use extra loop to compute MAN_SOURCES X-Git-Url: https://git.proxmox.com/?p=pve-docs.git;a=commitdiff_plain;h=df714d3f6225125e743e9453b4a9a69f49b529f3 scan-adoc-refs: use extra loop to compute MAN_SOURCES --- diff --git a/scan-adoc-refs b/scan-adoc-refs index bc89324..fa23ad1 100755 --- a/scan-adoc-refs +++ b/scan-adoc-refs @@ -370,6 +370,10 @@ if ($generate_depends) { } my $man_sources_hash = {}; + foreach my $sourcefile (keys %{$fileinfo->{outfile}->{manvolnum}}) { + $man_sources_hash->{$sourcefile} = 1; + } + foreach my $e (@$start_env) { my $filelist = $fileinfo->{outfile}->{$e}; foreach my $sourcefile (sort keys %$filelist) { @@ -378,7 +382,6 @@ if ($generate_depends) { $res .= "$target: \$\{$varname\}\n\n"; if ($e eq 'manvolnum') { - $man_sources_hash->{$sourcefile} = 1; $res .= "$target.html: \$\{$varname\}\n\n"; $res .= "$target-plain.html: \$\{$varname\}\n\n";