]> git.proxmox.com Git - pve-docs.git/blobdiff - scan-adoc-refs
scan-adoc-refs: include all sources in MANUAL_SOURCES
[pve-docs.git] / scan-adoc-refs
index fa23ad1b1e9a9f3047c5585d4275a995b434021c..333bd89af335ab37649fa22e5d9013ffc46f2897 100755 (executable)
@@ -372,6 +372,12 @@ if ($generate_depends) {
     my $man_sources_hash = {};
     foreach my $sourcefile (keys %{$fileinfo->{outfile}->{manvolnum}}) {
        $man_sources_hash->{$sourcefile} = 1;
+       my $ihash = $fileinfo->{include}->{manvolnum}->{$sourcefile};
+       foreach my $include (keys %$ihash) {
+           if ($include !~ m/-(opts|synopsis).adoc$/) {
+               $man_sources_hash->{$include} = 1;
+           }
+       }
     }
 
     foreach my $e (@$start_env) {