mirror of
https://git.proxmox.com/git/pve-docs
synced 2025-04-29 22:55:32 +00:00
scan-adoc-refs: use extra loop to compute MAN_SOURCES
This commit is contained in:
parent
1d0bf93ce1
commit
df714d3f62
@ -370,6 +370,10 @@ if ($generate_depends) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
my $man_sources_hash = {};
|
my $man_sources_hash = {};
|
||||||
|
foreach my $sourcefile (keys %{$fileinfo->{outfile}->{manvolnum}}) {
|
||||||
|
$man_sources_hash->{$sourcefile} = 1;
|
||||||
|
}
|
||||||
|
|
||||||
foreach my $e (@$start_env) {
|
foreach my $e (@$start_env) {
|
||||||
my $filelist = $fileinfo->{outfile}->{$e};
|
my $filelist = $fileinfo->{outfile}->{$e};
|
||||||
foreach my $sourcefile (sort keys %$filelist) {
|
foreach my $sourcefile (sort keys %$filelist) {
|
||||||
@ -378,7 +382,6 @@ if ($generate_depends) {
|
|||||||
$res .= "$target: \$\{$varname\}\n\n";
|
$res .= "$target: \$\{$varname\}\n\n";
|
||||||
|
|
||||||
if ($e eq 'manvolnum') {
|
if ($e eq 'manvolnum') {
|
||||||
$man_sources_hash->{$sourcefile} = 1;
|
|
||||||
|
|
||||||
$res .= "$target.html: \$\{$varname\}\n\n";
|
$res .= "$target.html: \$\{$varname\}\n\n";
|
||||||
$res .= "$target-plain.html: \$\{$varname\}\n\n";
|
$res .= "$target-plain.html: \$\{$varname\}\n\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user