From 8d67190c5501fd99a71908838ad6d36444234124 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 8 Jan 2009 18:03:45 +0100 Subject: doc: put iptables version into manpage Signed-off-by: Jan Engelhardt Signed-off-by: Pablo Neira Ayuso --- Makefile.am | 4 ++-- ip6tables.8.in | 2 +- iptables.8.in | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile.am b/Makefile.am index ced23b37..fd4d93f9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -89,10 +89,10 @@ sbin_PROGRAMS += iptables iptables-multi iptables-restore iptables-save \ endif iptables.8: ${srcdir}/iptables.8.in extensions/matches4.man extensions/targets4.man - ${AM_VERBOSE_GEN} sed -e '/@MATCH@/ r extensions/matches4.man' -e '/@TARGET@/ r extensions/targets4.man' $< >$@; + ${AM_VERBOSE_GEN} sed -e 's/@PACKAGE_AND_VERSION@/${PACKAGE} ${PACKAGE_VERSION}/g' -e '/@MATCH@/ r extensions/matches4.man' -e '/@TARGET@/ r extensions/targets4.man' $< >$@; ip6tables.8: ${srcdir}/ip6tables.8.in extensions/matches6.man extensions/targets6.man - ${AM_VERBOSE_GEN} sed -e '/@MATCH@/ r extensions/matches6.man' -e '/@TARGET@/ r extensions/targets6.man' $< >$@; + ${AM_VERBOSE_GEN} sed -e 's/@PACKAGE_AND_VERSION@/${PACKAGE} ${PACKAGE_VERSION}/g' -e '/@MATCH@/ r extensions/matches6.man' -e '/@TARGET@/ r extensions/targets6.man' $< >$@; extensions/%: ${MAKE} ${AM_MAKEFLAGS} -C $(@D) $(@F) diff --git a/ip6tables.8.in b/ip6tables.8.in index 669a9618..3b473bf3 100644 --- a/ip6tables.8.in +++ b/ip6tables.8.in @@ -1,4 +1,4 @@ -.TH IP6TABLES 8 "Jul 03, 2008" "" "" +.TH IP6TABLES 8 "" "@PACKAGE_AND_VERSION@" "@PACKAGE_AND_VERSION@" .\" .\" Man page written by Andras Kis-Szabo .\" It is based on iptables man page. diff --git a/iptables.8.in b/iptables.8.in index 9947da4c..b9d63838 100644 --- a/iptables.8.in +++ b/iptables.8.in @@ -1,4 +1,4 @@ -.TH IPTABLES 8 "Jul 03, 2008" "" "" +.TH IPTABLES 8 "" "@PACKAGE_AND_VERSION@" "@PACKAGE_AND_VERSION@" .\" .\" Man page written by Herve Eychenne (May 1999) .\" It is based on ipchains page. -- cgit v1.2.3