]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
iptables: use autoconf to process .in man pages
authorAndy Spencer <andy753421@gmail.com>
Sun, 19 May 2013 17:01:06 +0000 (17:01 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 29 May 2013 17:36:33 +0000 (19:36 +0200)
This fixes a bug in iptables.8 and ip6tables.8 where @PACKAGE_VERSION@
was not processed in the VERSION section. It also simplifies the
Makefile by avoiding some sed commands.

[ Mangled this patch to rename iptables-extensions.8.in to
  iptables-extensions.8.tmpl.in to avoid having a file whose name
  is terminated by .in.in --pablo ]

Signed-off-by: Andy Spencer <andy753421@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
configure.ac
iptables/.gitignore
iptables/Makefile.am
iptables/ip6tables.8.in
iptables/iptables-extensions.8.tmpl.in [moved from iptables/iptables-extensions.8.in with 94% similarity]
iptables/iptables.8.in

index d165d52c2ea7c261b7bb19bc416f1b0f99e38bb0..3e5e8268b52e7e95857668ba6daf5fb57eee4172 100644 (file)
@@ -127,6 +127,8 @@ AC_SUBST([libxtables_vmajor])
 
 AC_CONFIG_FILES([Makefile extensions/GNUmakefile include/Makefile
        iptables/Makefile iptables/xtables.pc
+       iptables/iptables.8 iptables/ip6tables.8
+       iptables/iptables-extensions.8.tmpl
        libipq/Makefile libipq/libipq.pc
        libiptc/Makefile libiptc/libiptc.pc
        libiptc/libip4tc.pc libiptc/libip6tc.pc
index 4fc63aa4c9834e0cc81d419437859db85824daa3..c9c31788e53813b5c88bdb3c3c04eb2080902f31 100644 (file)
@@ -6,6 +6,7 @@
 /iptables
 /iptables.8
 /iptables-extensions.8
+/iptables-extensions.8.tmpl
 /iptables-save
 /iptables-restore
 /iptables-static
index 61e78db917a13c329441c2a87ba197d3920c1e18..46d246304ceb8ce92eb72b20458ac55e6bc29c16 100644 (file)
@@ -38,15 +38,8 @@ if ENABLE_IPV6
 v6_sbin_links  = ip6tables ip6tables-restore ip6tables-save
 endif
 
-iptables.8: ${srcdir}/iptables.8.in
-       ${AM_VERBOSE_GEN} sed -e 's/@PACKAGE_AND_VERSION@/${PACKAGE} ${PACKAGE_VERSION}/g' $< >$@;
-
-ip6tables.8: ${srcdir}/ip6tables.8.in
-       ${AM_VERBOSE_GEN} sed -e 's/@PACKAGE_AND_VERSION@/${PACKAGE} ${PACKAGE_VERSION}/g' $< >$@;
-
-iptables-extensions.8: ${srcdir}/iptables-extensions.8.in ../extensions/matches.man ../extensions/targets.man
-       ${AM_VERBOSE_GEN} sed -e \
-               's/@PACKAGE_AND_VERSION@/${PACKAGE} ${PACKAGE_VERSION}/g' \
+iptables-extensions.8: ${srcdir}/iptables-extensions.8.tmpl ../extensions/matches.man ../extensions/targets.man
+       ${AM_VERBOSE_GEN} sed \
                -e '/@MATCH@/ r ../extensions/matches.man' \
                -e '/@TARGET@/ r ../extensions/targets.man' $< >$@;
 
index 863485487d233a8d851ded5fcaf73834eb065065..05e0d0f73e682c43cba8dc0f44273c5cba1f59cd 100644 (file)
@@ -1,4 +1,4 @@
-.TH IP6TABLES 8 "" "@PACKAGE_AND_VERSION@" "@PACKAGE_AND_VERSION@"
+.TH IP6TABLES 8 "" "@PACKAGE_STRING@" "@PACKAGE_STRING@"
 .\"
 .\" Man page written by Andras Kis-Szabo <kisza@sch.bme.hu>
 .\" It is based on iptables man page.
similarity index 94%
rename from iptables/iptables-extensions.8.in
rename to iptables/iptables-extensions.8.tmpl.in
index 9ec3fb0b68c7ffec18aad443854fd2a88439ab45..99d89a1fe44ad3899c06187c25851f12738edd01 100644 (file)
@@ -1,4 +1,4 @@
-.TH iptables-extensions 8 "" "@PACKAGE_AND_VERSION@" "@PACKAGE_AND_VERSION@"
+.TH iptables-extensions 8 "" "@PACKAGE_STRING@" "@PACKAGE_STRING@"
 .SH NAME
 iptables-extensions \(em list of extensions in the standard iptables distribution
 .SH SYNOPSIS
index 9643705ff9c8d5b2e137e2a9dacca9b959592194..0fba603d085038af59e80e91e1cc22ac3ce813b5 100644 (file)
@@ -1,4 +1,4 @@
-.TH IPTABLES 8 "" "@PACKAGE_AND_VERSION@" "@PACKAGE_AND_VERSION@"
+.TH IPTABLES 8 "" "@PACKAGE_STRING@" "@PACKAGE_STRING@"
 .\"
 .\" Man page written by Herve Eychenne <rv@wallfire.org> (May 1999)
 .\" It is based on ipchains page.