[PATCH 16/65] ii.1: show version in man page

From: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Thu, 17 Apr 2014 15:41:34 +0200

Signed-off-by: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
---
 Makefile | 4 ++--
 ii.1     | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 096551c..f32ebf4 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -40,11 +40,11 @@ install: all
 	_AT_mkdir -p ${DESTDIR}${DOCDIR}
 	_AT_mkdir -p ${DESTDIR}${BINDIR}
 	_AT_mkdir -p ${DESTDIR}${MAN1DIR}
-
 	_AT_install -d ${DESTDIR}${BINDIR} ${DESTDIR}${MAN1DIR}
 	_AT_install -m 644 CHANGES README query.sh FAQ LICENSE ${DESTDIR}${DOCDIR}
 	_AT_install -m 775 ii ${DESTDIR}${BINDIR}
-	_AT_install -m 444 ii.1 ${DESTDIR}${MAN1DIR}
+	_AT_sed "s/VERSION/${VERSION}/g" < ii.1 > ${DESTDIR}${MAN1DIR}/ii.1
+	_AT_chmod 644 ${DESTDIR}${MAN1DIR}/ii.1
 	_AT_echo "installed ii"
 
 uninstall: all
diff --git a/ii.1 b/ii.1
index f5d1e61..a586531 100644
--- a/ii.1
+++ b/ii.1
_AT_@ -1,7 +1,7 @@
 .de FN
 \fI\|\\$1\|\fP\\$2
 ..
-.TH ii 1
+.TH II 1 ii\-VERSION
 .SH NAME
 ii \- irc it or irc improved
 
-- 
2.4.10
--Multipart=_Mon__9_May_2016_17_21_10_+0200_I.6cpFVydhq75aaE
Content-Type: text/x-diff;
 name="0017-print_out-compare-at-start-of-line.patch"
Content-Disposition: attachment;
 filename="0017-print_out-compare-at-start-of-line.patch"
Content-Transfer-Encoding: 7bit
Received on Mon Sep 17 2001 - 00:00:00 CEST

This archive was generated by hypermail 2.3.0 : Mon May 09 2016 - 17:24:22 CEST