From fff735f96d39edc2f10d958751227683d0cd2cda Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabian=20Gr=C3=BCnbichler?= Date: Wed, 17 Oct 2018 13:01:58 +0200 Subject: [PATCH] pve-doc-generator: add rules for bash-completion MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit while these are not strictly documentation, they use the same mechanisms and are generated at the same time as the man pages. Signed-off-by: Fabian Grünbichler --- pve-doc-generator.mk.in | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pve-doc-generator.mk.in b/pve-doc-generator.mk.in index 893e9f8..0176d85 100644 --- a/pve-doc-generator.mk.in +++ b/pve-doc-generator.mk.in @@ -45,6 +45,13 @@ ifneq (${DGDIR},.) mv $@.tmp $@ endif +%.service-bash-completion: + perl ${PERL_DOC_INC} -T -e "use PVE::Service::$*; PVE::Service::$*->generate_bash_completions();" >$@.tmp + mv $@.tmp $@ + +%.bash-completion: + perl ${PERL_DOC_INC} -T -e "use PVE::CLI::$*; PVE::CLI::$*->generate_bash_completions();" >$@.tmp + mv $@.tmp $@ %-plain.html: %.adoc ${PVE_COMMON_DOC_SOURCES} ${ASCIIDOC_PVE} compile-wiki -o $@ $*.adoc -- 2.39.2