Skip to contentSkip to conversation

doc: fix version number in xtables-addons.8

PATCH In review Jeremy Sowden 2 participants 2 messages Aug 18, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 doc: fix version number in xtables-addons.8

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")
---
 Makefile.mans.in | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
Makefile.mans.in +4 -1
index 63424f7d558a..17f786d64869 100644
@@ -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})
Signature · 1 line
2.40.1
#1 lore raw

Makefile.mans.in man_run = \ · line 35

Quoted 4 lines · Jeremy Sowden

xtables-addons.8: ${srcdir}/xtables-addons.8.in matches.man targets.man

Makefile.mans.in +2 -1
-	${AM_V_GEN}sed -e '/@MATCHES@/ r matches.man' -e '/@TARGET@/ r targets.man' $< >$@;
+	${AM_V_GEN}sed \
+		-e 's/@PACKAGE'_'VERSION@/@PACKAGE_VERSION@/' \

I am surprised the normal escape stanza @@xyz@@ doesn't work..

6/6 applied.