netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jeremy Sowden <jeremy@azazel.net>
To: Netfilter Devel <netfilter-devel@vger.kernel.org>
Subject: [PATCH xtables-addons] doc: fix version number in xtables-addons.8
Date: Fri, 18 Aug 2023 15:28:28 +0100	[thread overview]
Message-ID: <20230818142828.2807221-1-jeremy@azazel.net> (raw)

In v3.21 a change was made to the man-page template to use `@PACKAGE_VERSION@`,
instead of manually updating the version number on every release.  However,
xtables-addons.8.in is not processed by configure, so the appropriate version is
never filled in.

Update Makefile.mans to handle it.

Fixes: b6611c54f2b5 ("Xtables-addons 3.21")
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
---
 Makefile.mans.in | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile.mans.in b/Makefile.mans.in
index 63424f7d558a..17f786d64869 100644
--- a/Makefile.mans.in
+++ b/Makefile.mans.in
@@ -31,7 +31,10 @@ man_run = \
 all: xtables-addons.8
 
 xtables-addons.8: ${srcdir}/xtables-addons.8.in matches.man targets.man
-	${AM_V_GEN}sed -e '/@MATCHES@/ r matches.man' -e '/@TARGET@/ r targets.man' $< >$@;
+	${AM_V_GEN}sed \
+		-e 's/@PACKAGE'_'VERSION@/@PACKAGE_VERSION@/' \
+		-e '/@MATCHES@/ r matches.man' \
+		-e '/@TARGET@/ r targets.man' $< >$@;
 
 matches.man: .manpages.lst ${wcman_matches}
 	$(call man_run,${wlist_matches})
-- 
2.40.1


             reply	other threads:[~2023-08-18 14:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-18 14:28 Jeremy Sowden [this message]
2023-08-18 14:58 ` [PATCH xtables-addons] doc: fix version number in xtables-addons.8 Jan Engelhardt

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=20230818142828.2807221-1-jeremy@azazel.net \
    --to=jeremy@azazel.net \
    --cc=netfilter-devel@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).