]> git.proxmox.com Git - pve-docs.git/commitdiff
export pct.1 pct.conf.5 vm.conf.5 and datacenter.conf.5
authorDietmar Maurer <dietmar@proxmox.com>
Wed, 6 Apr 2016 10:31:14 +0000 (12:31 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 6 Apr 2016 10:31:14 +0000 (12:31 +0200)
Makefile
gen-datacenter-cfg-opts-adoc.pl [deleted file]
gen-datacenter.cfg.5-opts.pl [new file with mode: 0755]
gen-pct-conf-opts-adoc.pl [deleted file]
gen-pct.conf.5-opts.pl [new file with mode: 0755]
gen-vm-conf-opts-adoc.pl [deleted file]
gen-vm.conf.5-opts.pl [new file with mode: 0755]
pve-doc-generator.mk

index f3981a6b093dfcd5f6efb859206874901503e921..bb85570a5f844413ed27e581ca5f8d69fc2525ca 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -26,26 +26,28 @@ DEB_SOURCES=                        \
        vzdump.adoc             \
        pve-firewall.adoc       \
        qm.adoc                 \
        vzdump.adoc             \
        pve-firewall.adoc       \
        qm.adoc                 \
+       vm.conf.adoc            \
        pct.adoc                \
        pct.adoc                \
+       pct.conf.adoc           \
+       datacenter.cfg.adoc     \
        pveam.adoc              \
        ha-manager.adoc         \
        pve-copyright.adoc      \
        docinfo.xml
 
 GEN_SCRIPTS=                                   \
        pveam.adoc              \
        ha-manager.adoc         \
        pve-copyright.adoc      \
        docinfo.xml
 
 GEN_SCRIPTS=                                   \
-       gen-datacenter-cfg-opts-adoc.pl         \
-       gen-pct-conf-opts-adoc.pl               \
+       gen-datacenter.cfg.5-opts.pl            \
+       gen-pct.conf.5-opts.pl                  \
+       gen-vm.conf.5-opts.pl                   \
        gen-pve-firewall-cluster-opts.pl        \
        gen-pve-firewall-host-opts.pl           \
        gen-pve-firewall-macros-adoc.pl         \
        gen-pve-firewall-rules-opts.pl          \
        gen-pve-firewall-cluster-opts.pl        \
        gen-pve-firewall-host-opts.pl           \
        gen-pve-firewall-macros-adoc.pl         \
        gen-pve-firewall-rules-opts.pl          \
-       gen-pve-firewall-vm-opts.pl             \
-       gen-vm-conf-opts-adoc.pl
+       gen-pve-firewall-vm-opts.pl
 
 PVEUM_SOURCES=attributes.txt pveum.adoc pveum.1-synopsis.adoc
 VZDUMP_SOURCES=attributes.txt vzdump.adoc vzdump.1-synopsis.adoc
 QM_SOURCES=attributes.txt qm.adoc qm.1-synopsis.adoc
 
 PVEUM_SOURCES=attributes.txt pveum.adoc pveum.1-synopsis.adoc
 VZDUMP_SOURCES=attributes.txt vzdump.adoc vzdump.1-synopsis.adoc
 QM_SOURCES=attributes.txt qm.adoc qm.1-synopsis.adoc
-PCT_SOURCES=attributes.txt pct.adoc pct.1-synopsis.adoc
 PVEAM_SOURCES=attributes.txt pveam.adoc pveam.1-synopsis.adoc
 HA_SOURCES=attributes.txt ha-manager.1-synopsis.adoc ha-manager.adoc
 
 PVEAM_SOURCES=attributes.txt pveam.adoc pveam.1-synopsis.adoc
 HA_SOURCES=attributes.txt ha-manager.1-synopsis.adoc ha-manager.adoc
 
@@ -70,8 +72,8 @@ PVE_ADMIN_GUIDE_SOURCES=              \
        pve-faq.adoc                    \
        ${PVE_FIREWALL_MAN8_SOURCES}    \
        ${PVESM_MAN1_SOURCES}           \
        pve-faq.adoc                    \
        ${PVE_FIREWALL_MAN8_SOURCES}    \
        ${PVESM_MAN1_SOURCES}           \
+       ${PCT_MAN1_SOURCES}             \
        ${QM_SOURCES}                   \
        ${QM_SOURCES}                   \
-       ${PCT_SOURCES}                  \
        ${PVEAM_SOURCES}                \
        ${PVEUM_SOURCES}                \
        ${VZDUMP_SOURCES}               \
        ${PVEAM_SOURCES}                \
        ${PVEUM_SOURCES}                \
        ${VZDUMP_SOURCES}               \
@@ -115,10 +117,6 @@ all: pve-admin-guide.html
        asciidoc ${ADOC_MAN8_HTML_ARGS} -o $@ $*.adoc
        test -n "$${NOVIEW}" || $(BROWSER) $@ &
 
        asciidoc ${ADOC_MAN8_HTML_ARGS} -o $@ $*.adoc
        test -n "$${NOVIEW}" || $(BROWSER) $@ &
 
-%.5: %.adoc %.5-opts.adoc docinfo.xml
-       a2x -a docinfo1 -a "manvolnum=5" -a "manversion=Release ${DOCRELEASE}" -f manpage $*.adoc
-       test -n "$${NOVIEW}" || man -l $@
-
 %.5.html: %.adoc %.5-opts.adoc docinfo.xml
        asciidoc ${ADOC_MAN5_HTML_ARGS} -o $@ $*.adoc
        test -n "$${NOVIEW}" || $(BROWSER) $@ &
 %.5.html: %.adoc %.5-opts.adoc docinfo.xml
        asciidoc ${ADOC_MAN5_HTML_ARGS} -o $@ $*.adoc
        test -n "$${NOVIEW}" || $(BROWSER) $@ &
diff --git a/gen-datacenter-cfg-opts-adoc.pl b/gen-datacenter-cfg-opts-adoc.pl
deleted file mode 100755 (executable)
index 1c687c9..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/usr/bin/perl
-
-use lib '.';
-use strict;
-use warnings;
-use PVE::Cluster;
-use PVE::RESTHandler;
-
-my $schema = PVE::Cluster::get_datacenter_schema();
-
-print PVE::RESTHandler::dump_properties($schema->{properties});
diff --git a/gen-datacenter.cfg.5-opts.pl b/gen-datacenter.cfg.5-opts.pl
new file mode 100755 (executable)
index 0000000..1c687c9
--- /dev/null
@@ -0,0 +1,11 @@
+#!/usr/bin/perl
+
+use lib '.';
+use strict;
+use warnings;
+use PVE::Cluster;
+use PVE::RESTHandler;
+
+my $schema = PVE::Cluster::get_datacenter_schema();
+
+print PVE::RESTHandler::dump_properties($schema->{properties});
diff --git a/gen-pct-conf-opts-adoc.pl b/gen-pct-conf-opts-adoc.pl
deleted file mode 100755 (executable)
index d6744fa..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/usr/bin/perl
-
-use lib '.';
-use strict;
-use warnings;
-use PVE::RESTHandler;
-use PVE::LXC::Config;
-
-my $prop = PVE::LXC::Config->json_config_properties();
-
-print PVE::RESTHandler::dump_properties($prop);
diff --git a/gen-pct.conf.5-opts.pl b/gen-pct.conf.5-opts.pl
new file mode 100755 (executable)
index 0000000..d6744fa
--- /dev/null
@@ -0,0 +1,11 @@
+#!/usr/bin/perl
+
+use lib '.';
+use strict;
+use warnings;
+use PVE::RESTHandler;
+use PVE::LXC::Config;
+
+my $prop = PVE::LXC::Config->json_config_properties();
+
+print PVE::RESTHandler::dump_properties($prop);
diff --git a/gen-vm-conf-opts-adoc.pl b/gen-vm-conf-opts-adoc.pl
deleted file mode 100755 (executable)
index cb62d13..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/usr/bin/perl
-
-use lib '.';
-use strict;
-use warnings;
-use PVE::RESTHandler;
-use PVE::QemuServer;
-
-my $prop = PVE::QemuServer::json_config_properties();
-
-print PVE::RESTHandler::dump_properties($prop);
diff --git a/gen-vm.conf.5-opts.pl b/gen-vm.conf.5-opts.pl
new file mode 100755 (executable)
index 0000000..cb62d13
--- /dev/null
@@ -0,0 +1,11 @@
+#!/usr/bin/perl
+
+use lib '.';
+use strict;
+use warnings;
+use PVE::RESTHandler;
+use PVE::QemuServer;
+
+my $prop = PVE::QemuServer::json_config_properties();
+
+print PVE::RESTHandler::dump_properties($prop);
index 5387cc99b9820e69786b9d804d4b24d9b5bd42b0..cdc51a4d10592373d3c14b1493ab4a9fc2185111 100644 (file)
@@ -33,16 +33,21 @@ PVESM_MAN1_SOURCES=                 \
        pve-storage-zfspool.adoc        \
        ${PVE_COMMON_DOC_SOURCES}
 
        pve-storage-zfspool.adoc        \
        ${PVE_COMMON_DOC_SOURCES}
 
+PCT_MAN1_SOURCES=                      \
+       pct.adoc                        \
+       pct.1-synopsis.adoc             \
+       ${PVE_COMMON_DOC_SOURCES}
+
 attributes.txt docinfo.xml:
        cp ${DGDIR}/$@ $@.tmp
        mv $@.tmp $@
 
 %-opts.adoc: ${DGDIR}/gen-%-opts.pl
 attributes.txt docinfo.xml:
        cp ${DGDIR}/$@ $@.tmp
        mv $@.tmp $@
 
 %-opts.adoc: ${DGDIR}/gen-%-opts.pl
-       $< >$@.tmp
+       ${DGDIR}/gen-$*-opts.pl >$@.tmp
        mv $@.tmp $@
 
 %.adoc: ${DGDIR}/gen-%-adoc.pl
        mv $@.tmp $@
 
 %.adoc: ${DGDIR}/gen-%-adoc.pl
-       $< >$@.tmp
+       ${DGDIR}/gen-$*-adoc.pl >$@.tmp
        mv $@.tmp $@
 
 %.1-synopsis.adoc:
        mv $@.tmp $@
 
 %.1-synopsis.adoc:
@@ -53,9 +58,11 @@ attributes.txt docinfo.xml:
        perl -I. -e "use PVE::Service::$(subst -,_,$*);print PVE::Service::$(subst -,_,$*)->generate_asciidoc_synopsys();" > $@.tmp
        mv $@.tmp $@
 
        perl -I. -e "use PVE::Service::$(subst -,_,$*);print PVE::Service::$(subst -,_,$*)->generate_asciidoc_synopsys();" > $@.tmp
        mv $@.tmp $@
 
+ifneq (${DGDIR},.)
 %.adoc: ${DGDIR}/%.adoc
        cp $< $@.tmp
        mv $@.tmp $@
 %.adoc: ${DGDIR}/%.adoc
        cp $< $@.tmp
        mv $@.tmp $@
+endif
 
 pve-firewall.8: ${PVE_FIREWALL_MAN8_SOURCES}
        a2x -a docinfo1 -a "manvolnum=8" -a "manversion=Release ${DOCRELEASE}" -f manpage pve-firewall.adoc
 
 pve-firewall.8: ${PVE_FIREWALL_MAN8_SOURCES}
        a2x -a docinfo1 -a "manvolnum=8" -a "manversion=Release ${DOCRELEASE}" -f manpage pve-firewall.adoc
@@ -65,6 +72,21 @@ pvesm.1: ${PVESM_MAN1_SOURCES}
        a2x -a docinfo1 -a "manvolnum=1" -a "manversion=Release ${DOCRELEASE}" -f manpage pvesm.adoc
        test -n "$${NOVIEW}" || man -l $@
 
        a2x -a docinfo1 -a "manvolnum=1" -a "manversion=Release ${DOCRELEASE}" -f manpage pvesm.adoc
        test -n "$${NOVIEW}" || man -l $@
 
+pct.1: ${PCT_MAN1_SOURCES}
+       a2x -a docinfo1 -a "manvolnum=1" -a "manversion=Release ${DOCRELEASE}" -f manpage pct.adoc
+       test -n "$${NOVIEW}" || man -l $@
+
+pct.conf.5: pct.conf.adoc pct.conf.5-opts.adoc ${PVE_COMMON_DOC_SOURCES}
+       a2x -a docinfo1 -a "manvolnum=5" -a "manversion=Release ${DOCRELEASE}" -f manpage pct.conf.adoc
+       test -n "$${NOVIEW}" || man -l $@
+
+vm.conf.5: vm.conf.adoc vm.conf.5-opts.adoc ${PVE_COMMON_DOC_SOURCES}
+       a2x -a docinfo1 -a "manvolnum=5" -a "manversion=Release ${DOCRELEASE}" -f manpage vm.conf.adoc
+       test -n "$${NOVIEW}" || man -l $@
+
+datacenter.conf.5: datacenter.conf.adoc datacenter.conf.5-opts.adoc ${PVE_COMMON_DOC_SOURCES}
+       a2x -a docinfo1 -a "manvolnum=5" -a "manversion=Release ${DOCRELEASE}" -f manpage datacenter.conf.adoc
+       test -n "$${NOVIEW}" || man -l $@
 
 .PHONY: cleanup-docgen
 cleanup-docgen:
 
 .PHONY: cleanup-docgen
 cleanup-docgen: