]> git.proxmox.com Git - pve-docs.git/commitdiff
scan-adoc-refs: use extra loop to compute MAN_SOURCES
authorDietmar Maurer <dietmar@proxmox.com>
Sat, 15 Oct 2016 08:55:20 +0000 (10:55 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Sat, 15 Oct 2016 08:55:20 +0000 (10:55 +0200)
scan-adoc-refs

index bc893249c7b0c8da6c10a25a40493e0c29ed8546..fa23ad1b1e9a9f3047c5585d4275a995b434021c 100755 (executable)
@@ -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";