all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: Christoph Heiss <c.heiss@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [PATCH docs 2/7] pve-doc-generator: handle CLI tools/services with dashes in their name
Date: Tue, 23 Jun 2026 11:43:19 +0200	[thread overview]
Message-ID: <20260623094419.330174-3-c.heiss@proxmox.com> (raw)
In-Reply-To: <20260623094419.330174-1-c.heiss@proxmox.com>

.. by replacing dashes with underscores.

Exact same as the rules for *.{1,8}-synopsis.adoc files above.

Signed-off-by: Christoph Heiss <c.heiss@proxmox.com>
---
 pve-doc-generator.mk.in | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/pve-doc-generator.mk.in b/pve-doc-generator.mk.in
index 64b6398..deb848b 100644
--- a/pve-doc-generator.mk.in
+++ b/pve-doc-generator.mk.in
@@ -56,27 +56,27 @@ ifneq (${DGDIR},.)
 endif
 
 %.service-bash-completion:
-	perl ${PERL_DOC_INC} -T -e "use PVE::Service::$*; PVE::Service::$*->generate_bash_completions();" >$@.tmp
+	perl ${PERL_DOC_INC} -T -e "use PVE::Service::$(subst -,_,$*); PVE::Service::$(subst -,_,$*)->generate_bash_completions();" >$@.tmp
 	mv $@.tmp $@
 
 %.bash-completion:
-	perl ${PERL_DOC_INC} -T -e "use PVE::CLI::$*; PVE::CLI::$*->generate_bash_completions();" >$@.tmp
+	perl ${PERL_DOC_INC} -T -e "use PVE::CLI::$(subst -,_,$*); PVE::CLI::$(subst -,_,$*)->generate_bash_completions();" >$@.tmp
 	mv $@.tmp $@
 
 %.service-zsh-completion:
-	perl ${PERL_DOC_INC} -T -e "use PVE::Service::$*; PVE::Service::$*->generate_zsh_completions();" >$@.tmp
+	perl ${PERL_DOC_INC} -T -e "use PVE::Service::$(subst -,_,$*); PVE::Service::$(subst -,_,$*)->generate_zsh_completions();" >$@.tmp
 	mv $@.tmp $@
 
 %.zsh-completion:
-	perl ${PERL_DOC_INC} -T -e "use PVE::CLI::$*; PVE::CLI::$*->generate_zsh_completions();" >$@.tmp
+	perl ${PERL_DOC_INC} -T -e "use PVE::CLI::$(subst -,_,$*); PVE::CLI::$(subst -,_,$*)->generate_zsh_completions();" >$@.tmp
 	mv $@.tmp $@
 
 %.service-api-verified:
-	perl ${PERL_DOC_INC} -T -e "use PVE::Service::$*; PVE::Service::$*->verify_api();"
+	perl ${PERL_DOC_INC} -T -e "use PVE::Service::$(subst -,_,$*); PVE::Service::$(subst -,_,$*)->verify_api();"
 	touch $@
 
 %.api-verified:
-	perl ${PERL_DOC_INC} -T -e "use PVE::CLI::$*; PVE::CLI::$*->verify_api();"
+	perl ${PERL_DOC_INC} -T -e "use PVE::CLI::$(subst -,_,$*); PVE::CLI::$(subst -,_,$*)->verify_api();"
 	touch $@
 
 %-plain.html: %.adoc ${PVE_COMMON_DOC_SOURCES}
-- 
2.54.0





  parent reply	other threads:[~2026-06-23  9:45 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-23  9:43 [PATCH docs/manager 0/7] interface-pinning: add rename subcommand and man(1) page Christoph Heiss
2026-06-23  9:43 ` [PATCH docs 1/7] network: fix typo occurences -> occurrences Christoph Heiss
2026-06-23  9:43 ` Christoph Heiss [this message]
2026-06-23  9:43 ` [PATCH docs 3/7] pve-network-interface-pinning: init man(1) page Christoph Heiss
2026-06-23  9:43 ` [PATCH docs 4/7] network: pinning: mention how to rename an interface Christoph Heiss
2026-06-23  9:43 ` [PATCH manager 5/7] network-interface-pinning: avoid warning if `bond-primary` is unset Christoph Heiss
2026-06-23  9:43 ` [PATCH manager 6/7] network-interface-pinning: add method for renaming existing pins Christoph Heiss
2026-06-23  9:43 ` [PATCH manager 7/7] network-interface-pinning: generate proper manpage from docs Christoph Heiss

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260623094419.330174-3-c.heiss@proxmox.com \
    --to=c.heiss@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal