[pve-devel] [PATCH docs] include parent directory for CLI synopsis build
Thomas Lamprecht
t.lamprecht at proxmox.com
Tue May 24 18:45:45 CEST 2016
On 24.05.2016 16:44, Dietmar Maurer wrote:
>> + perl -I. -I.. -e "use PVE::CLI::$(subst -,_,$*);print PVE::CLI::$(subst
>> -,_,$*)->generate_asciidoc_synopsys();" > $@.tmp
>
> I don't want to use -I.. by default, so I simply
> overwrote the rule:
>
> https://git.proxmox.com/?p=pve-cluster.git;a=commitdiff;h=f155bc6078a60b6a158de9820e49b36d49b334a8
>
> hope that works for you?
>
Works like a charm, thanks!
Another include for completion is needed and then I could built the package on armhf.
diff --git a/data/PVE/Makefile.am b/data/PVE/Makefile.am
index 5eb7845..6faa94b 100644
--- a/data/PVE/Makefile.am
+++ b/data/PVE/Makefile.am
@@ -16,7 +16,7 @@ include /usr/share/pve-doc-generator/pve-doc-generator.mk
%.bash-completion:
- perl -I.. -T -e "use PVE::CLI::$*; PVE::CLI::$*->generate_bash_completions();" >$@.tmp
+ perl -I. -I.. -T -e "use PVE::CLI::$*; PVE::CLI::$*->generate_bash_completions();" >$@.tmp
mv $@.tmp $@
# overwrite rule from pve-doc-generator.mk, use -I.. (instead of -I.)
@@ -38,7 +38,7 @@ cliclass_DATA = CLI/pvecm.pm
cliclassdir = $(PERL_VENDORLIB)/PVE/CLI
install-exec-hook: pvecm.bash-completion
- perl -I.. -T -e "use PVE::CLI::pvecm; PVE::CLI::pvecm->verify_api();"
+ perl -I. -I.. -T -e "use PVE::CLI::pvecm; PVE::CLI::pvecm->verify_api();"
install -m 0644 -D pvecm.bash-completion ${DESTDIR}/usr/share/bash-completion/completions/pvecm
clean-local:
More information about the pve-devel
mailing list