summaryrefslogtreecommitdiff
path: root/irfanview/debian/rules
diff options
context:
space:
mode:
Diffstat (limited to 'irfanview/debian/rules')
-rwxr-xr-xirfanview/debian/rules6
1 files changed, 6 insertions, 0 deletions
diff --git a/irfanview/debian/rules b/irfanview/debian/rules
index c05c160..32f82d8 100755
--- a/irfanview/debian/rules
+++ b/irfanview/debian/rules
@@ -7,6 +7,7 @@
export _prefix=/usr
export _datadir="${_prefix}/share"
+export _mandir="${_datadir}/man"
export appname=irfanview
export appname_32=irfanview-bin32
export appname_64=irfanview-bin64
@@ -53,6 +54,11 @@ override_dh_auto_install:
cp -p irfanview-circle.svg ${buildroot_common}${_datadir}/icons/hicolor/scalable/apps/${appname}.svg
rm -f ./irfanview-circle.svg || :
+ @# man pages
+ mkdir -p ${buildroot_32}/${_mandir}/man1 ${buildroot_64}/${_mandir}/man1
+ txt2man-wrapper - < ${debuilddir}/irfanview32.1.txt | gzip > ${buildroot_32}/${_mandir}/man1/irfanview32.1.gz
+ txt2man-wrapper - < ${debuilddir}/irfanview64.1.txt | gzip > ${buildroot_64}/${_mandir}/man1/irfanview64.1.gz
+
override_dh_auto_clean:
dh_auto_clean
rm -rf ./irfanview-circle.svg || :
bgstack15