build: add software version to manpage first line at configure stage
This patch adds the software version to the first line of the
following manpages:
iptables-save.8
iptables-restore.8
iptables-apply.8
iptables-xml.1
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
diff --git a/configure.ac b/configure.ac
index 52d6b54..76d0b37 100644
--- a/configure.ac
+++ b/configure.ac
@@ -156,6 +156,8 @@
AC_CONFIG_FILES([Makefile extensions/GNUmakefile include/Makefile
iptables/Makefile iptables/xtables.pc
iptables/iptables.8 iptables/iptables-extensions.8.tmpl
+ iptables/iptables-save.8 iptables/iptables-restore.8
+ iptables/iptables-apply.8 iptables/iptables-xml.1
libipq/Makefile libipq/libipq.pc
libiptc/Makefile libiptc/libiptc.pc
libiptc/libip4tc.pc libiptc/libip6tc.pc
diff --git a/iptables/iptables-apply.8 b/iptables/iptables-apply.8.in
similarity index 95%
rename from iptables/iptables-apply.8
rename to iptables/iptables-apply.8.in
index 66eaf57..cdc9c44 100644
--- a/iptables/iptables-apply.8
+++ b/iptables/iptables-apply.8.in
@@ -2,7 +2,7 @@
.\" Author: Martin F. Krafft
.\" Date: Jun 04, 2006
.\"
-.TH iptables\-apply 8 2006-06-04
+.TH IPTABLES\-APPLY 8 "" "@PACKAGE_STRING@" "@PACKAGE_STRING@"
.\" disable hyphenation
.nh
.SH NAME
diff --git a/iptables/iptables-restore.8 b/iptables/iptables-restore.8.in
similarity index 97%
rename from iptables/iptables-restore.8
rename to iptables/iptables-restore.8.in
index 8567147..feb57ef 100644
--- a/iptables/iptables-restore.8
+++ b/iptables/iptables-restore.8.in
@@ -1,4 +1,4 @@
-.TH IPTABLES-RESTORE 8 "Jan 04, 2001" "" ""
+.TH IPTABLES-RESTORE 8 "" "@PACKAGE_STRING@" "@PACKAGE_STRING@"
.\"
.\" Man page written by Harald Welte <laforge@gnumonks.org>
.\" It is based on the iptables man page.
diff --git a/iptables/iptables-save.8 b/iptables/iptables-save.8.in
similarity index 96%
rename from iptables/iptables-save.8
rename to iptables/iptables-save.8.in
index d796a96..5e939b1 100644
--- a/iptables/iptables-save.8
+++ b/iptables/iptables-save.8.in
@@ -1,4 +1,4 @@
-.TH IPTABLES-SAVE 8 "Jan 04, 2001" "" ""
+.TH IPTABLES-SAVE 8 "" "@PACKAGE_STRING@" "@PACKAGE_STRING@"
.\"
.\" Man page written by Harald Welte <laforge@gnumonks.org>
.\" It is based on the iptables man page.
diff --git a/iptables/iptables-xml.1 b/iptables/iptables-xml.1.in
similarity index 97%
rename from iptables/iptables-xml.1
rename to iptables/iptables-xml.1.in
index 70b2c1f..7b7878f 100644
--- a/iptables/iptables-xml.1
+++ b/iptables/iptables-xml.1.in
@@ -1,4 +1,4 @@
-.TH IPTABLES-XML 1 "Jul 16, 2007" "" ""
+.TH IPTABLES-XML 1 "" "@PACKAGE_STRING@" "@PACKAGE_STRING@"
.\"
.\" Man page written by Sam Liddicott <azez@ufomechanic.net>
.\" It is based on the iptables-save man page.