]> git.proxmox.com Git - pve-docs.git/commitdiff
generate man page output file mappings automatically
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 14 Oct 2016 04:50:17 +0000 (06:50 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 14 Oct 2016 04:50:17 +0000 (06:50 +0200)
Makefile
scan-adoc-refs

index db7c9492d6656cfc7fc6d92929d53852d6774d22..3017b2a21c7bf8462881c5328173be0aaca9a6fc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -180,6 +180,7 @@ WIKI_IMPORTS=                                                                       \
        pve-usbstick-plain.html                                                 \
        getting-help-plain.html                                                 \
        pve-system-requirements-plain.html                                      \
+       system-timesync-plain.html                                              \
        $(addsuffix -plain.html, ${SYSADMIN_PARTS})                             \
        $(addsuffix -plain.html, ${CHAPTER_LIST})                               \
        $(addsuffix .5-plain.html, ${CONFIG_LIST})                              \
index 03dc51cf59f668da803c738d3fbb09b8f58b3ea4..13e6ae088a438e9cb30f4632eff92faa6adb32b2 100755 (executable)
@@ -33,31 +33,6 @@ my $fileinfo = {
            "pmxcfs.adoc" => "chapter-pmxcfs.html",
            "pve-faq.adoc" => "chapter-pve-faq.html",
        },
-       manvolnum => {
-           "ha-manager.adoc" => "ha-manager.1",
-           "pct.adoc" => "pct.1",
-           "pveam.adoc" => "pveam.1",
-           "pveceph.adoc" => "pveceph.1",
-           "pvecm.adoc" => "pvecm.1",
-           "pveperf.adoc" => "pveperf.1",
-           "pvesm.adoc" => "pvesm.1",
-           "pvesubscription.adoc" => "pvesubscription.1",
-           "pveum.adoc" => "pveum.1",
-           "qm.adoc" => "qm.1",
-           "qmrestore.adoc" => "qmrestore.1",
-           "vzdump.adoc" => "vzdump.1",
-           "datacenter.cfg.adoc" => "datacenter.cfg.5",
-           "pct.conf.adoc" => "pct.conf.5",
-           "qm.conf.adoc" => "qm.conf.5",
-           "pmxcfs.adoc" => "pmxcfs.8",
-           "pvedaemon.adoc" => "pvedaemon.8",
-           "pve-firewall.adoc" => "pve-firewall.8",
-           "pve-ha-crm.adoc" => "pve-ha-crm.8",
-           "pve-ha-lrm.adoc" => "pve-ha-lrm.8",
-           "pveproxy.adoc" => "pveproxy.8",
-           "pvestatd.adoc" => "pvestatd.8",
-           "spiceproxy.adoc" => "spiceproxy.8",
-       },
     },
 };
 
@@ -311,7 +286,13 @@ foreach my $e (@$start_env) {
            if (defined($mansection) && ($mansection == 5)) {
                $realfn .= ".$mansection";
            }
-           my $realfn = "$realfn-plain.html";
+           $realfn = "$realfn-plain.html";
+           $fileinfo->{outfile}->{$e}->{$fn} = $realfn;
+       } elsif ($e eq 'manvolnum') {
+           my $realfn = $fn;
+           $realfn =~ s/\.adoc$//;
+           die "toplevel file '$fn' is marhes as manual page!" if !$mansection;
+           $realfn .= ".$mansection";
            $fileinfo->{outfile}->{$e}->{$fn} = $realfn;
        }
     }