[med-svn] r11981 - trunk/packages/python-biom-format/trunk/debian
Andreas Tille
tille at alioth.debian.org
Fri Aug 3 09:26:02 UTC 2012
Author: tille
Date: 2012-08-03 09:26:02 +0000 (Fri, 03 Aug 2012)
New Revision: 11981
Modified:
trunk/packages/python-biom-format/trunk/debian/rules
Log:
Use help2man to create manpages where this makes sense
Modified: trunk/packages/python-biom-format/trunk/debian/rules
===================================================================
--- trunk/packages/python-biom-format/trunk/debian/rules 2012-08-03 09:09:28 UTC (rev 11980)
+++ trunk/packages/python-biom-format/trunk/debian/rules 2012-08-03 09:26:02 UTC (rev 11981)
@@ -2,12 +2,15 @@
DH_VERBOSE := 1
-pkg := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
+pkg := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
+version := $(shell dpkg-parsechangelog -ldebian/changelog | grep Version: | cut -f2 -d' ' | cut -f1 -d- )
+bindir := $(CURDIR)/debian/$(pkg)/usr/bin
+mandir := $(CURDIR)/debian/$(pkg)/usr/share/man/man1
-UVER := $(shell LC_ALL=C dpkg-parsechangelog | awk '/^Version:/{print $$2;}' | sed -e 's,-[^-]*$$,,g')
-CYTHONVER := $(shell dpkg -l cython | awk '/^ii/{print $$3;}' || echo 0)
-MIN_CYTHONVER := 0.17~beta1-2
-NO_CYTHON := $(shell if dpkg --compare-versions $(CYTHONVER) lt $(MIN_CYTHONVER) ; then echo 0 ; else echo 1 ; fi)
+#UVER := $(shell LC_ALL=C dpkg-parsechangelog | awk '/^Version:/{print $$2;}' | sed -e 's,-[^-]*$$,,g')
+#CYTHONVER := $(shell dpkg -l cython | awk '/^ii/{print $$3;}' || echo 0)
+#MIN_CYTHONVER := 0.17~beta1-2
+#NO_CYTHON := $(shell if dpkg --compare-versions $(CYTHONVER) lt $(MIN_CYTHONVER) ; then echo 0 ; else echo 1 ; fi)
%:
dh $@ --with python2 # ,sphinxdoc
@@ -24,7 +27,14 @@
override_dh_install:
dh_install
# remove language extension
- rename 's/\.py$$//;' $(CURDIR)/debian/*/usr/bin/*
+ rename 's/\.py$$//;' $(bindir)/*
+ # try to create man pages whereever possible
+ mkdir -p $(mandir)
+ help2man --no-info --name='Test a biom file for adherence to the format specification' \
+ --version-string="$(version)" \
+ $(bindir)/biom_validator > $(mandir)/biom_validator.1
+ help2man --no-info --name='Script to convert biom formatted files' \
+ $(bindir)/convert_biom > $(mandir)/convert_biom.1
get-orig-source:
. debian/get-orig-source
More information about the debian-med-commit
mailing list