From: Jeremy Sowden Date: Fri, 18 Aug 2023 14:28:28 +0000 (+0200) Subject: doc: fix version number in xtables-addons.8 X-Git-Tag: v3.25~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07b48ef8f5ac2e2f86da52809aa2a75852ee7e20;p=thirdparty%2Fxtables-addons.git 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") Signed-off-by: Jeremy Sowden --- diff --git a/Makefile.mans.in b/Makefile.mans.in index 60459cb..a4af81e 100644 --- a/Makefile.mans.in +++ b/Makefile.mans.in @@ -36,7 +36,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})