From cef5157681b047ab4e38ed5a0f90647fc8fa95ba Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Sat, 15 Oct 2016 11:43:01 +0200 Subject: [PATCH] scan-adoc-refs: include all sources in MANUAL_SOURCES --- Makefile | 1 - scan-adoc-refs | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 43382d5..bd9df33 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,6 @@ include ./pve-doc-generator.mk GEN_DEB_SOURCES= \ pve-doc-generator.mk \ ${MANUAL_SOURCES} \ - ${PVESM_ADOCSOURCES} \ pmxcfs.8-synopsis.adoc \ docinfo.xml diff --git a/scan-adoc-refs b/scan-adoc-refs index fa23ad1..333bd89 100755 --- a/scan-adoc-refs +++ b/scan-adoc-refs @@ -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) { -- 2.39.2