Author: tille
Date: 2014-08-18 12:23:08 +0000 (Mon, 18 Aug 2014)
New Revision: 17759

Removed:
   trunk/packages/fsa/trunk/debian/createmanpages
Modified:
   trunk/packages/fsa/trunk/debian/control
   trunk/packages/fsa/trunk/debian/rules
Log:
Use help2man for manpages; tools without manpage currently are just throwing 
SIGSEGV - need to contact upstream


Modified: trunk/packages/fsa/trunk/debian/control
===================================================================
--- trunk/packages/fsa/trunk/debian/control     2014-08-17 17:02:21 UTC (rev 
17758)
+++ trunk/packages/fsa/trunk/debian/control     2014-08-18 12:23:08 UTC (rev 
17759)
@@ -4,7 +4,8 @@
 Maintainer: Debian Med Packaging Team 
<[email protected]>
 Uploaders: Andreas Tille <[email protected]>
 Build-Depends: debhelper (>= 9),
-               dh-autoreconf
+               dh-autoreconf,
+               help2man
 Standards-Version: 3.9.5
 Vcs-Browser: 
http://anonscm.debian.org/viewvc/debian-med/trunk/packages/fsa/trunk/
 Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/fsa/trunk/

Deleted: trunk/packages/fsa/trunk/debian/createmanpages
===================================================================
--- trunk/packages/fsa/trunk/debian/createmanpages      2014-08-17 17:02:21 UTC 
(rev 17758)
+++ trunk/packages/fsa/trunk/debian/createmanpages      2014-08-18 12:23:08 UTC 
(rev 17759)
@@ -1,16 +0,0 @@
-#!/bin/sh
-MANDIR=debian
-mkdir -p $MANDIR
-
-VERSION=`dpkg-parsechangelog | awk '/^Version:/ {print $2}' | sed -e 
's/^[0-9]*://' -e 's/-.*//' -e 's/[+~]dfsg$//'`
-
-help2man --no-info --no-discard-stderr --help-option=" " \
-         --name='<optional description of the program>' \
-            --version-string="$VERSION" <programname> > $MANDIR/<programname>.1
-
-cat <<EOT
-Please enhance the help2man output.
-The following web page might be helpful in doing so:
-    http://liw.fi/manpages/
-EOT
-

Modified: trunk/packages/fsa/trunk/debian/rules
===================================================================
--- trunk/packages/fsa/trunk/debian/rules       2014-08-17 17:02:21 UTC (rev 
17758)
+++ trunk/packages/fsa/trunk/debian/rules       2014-08-18 12:23:08 UTC (rev 
17759)
@@ -2,20 +2,14 @@
 
 # DH_VERBOSE := 1
 
-# some helpful variables - uncomment them if needed
-# shamelessly stolen from http://jmtd.net/log/awk/
-#DEBVERS        := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
-#VERSION        := $(shell echo '$(DEBVERS)' | sed -e 's/^[0-9]*://' -e 
's/-.*//')
-#DEBFLAVOR      := $(shell dpkg-parsechangelog | awk '/^Distribution:/ {print 
$$2}')
-#DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
-#DEBIAN_BRANCH  := $(shell awk 'BEGIN{FS="[= ]+"} /debian-branch/ {print $$2}' 
debian/gbp.conf)
-#GIT_TAG        := $(subst ~,_,$(VERSION))
+VERSION               := $(shell dpkg-parsechangelog | grep Version: | cut -f2 
-d' ' | cut -f1 -d- )
+DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
 
-# alternatively to manually set those variables you can
-#  include /usr/share/cdbs/1/rules/buildvars.mk
-# and use what is set there.  Any hint whether dh might set variables in
-# a similar manner are welcome.
+mandir=$(CURDIR)/debian/$(DEBPKGNAME)/usr/share/man/man1
+bindir=$(CURDIR)/debian/$(DEBPKGNAME)/usr/bin
 
+HELP2MAN = help2man --no-info --version-string="$(VERSION)"
+
 %:
        dh $@ --with autoreconf
 
@@ -23,5 +17,29 @@
        echo "Tests seem to miss some files:"
        echo "make[4]: *** No rule to make target 
'apps/isect_d.unmappable.bash', needed by 'apps/isect_d.unmappable.bash.log'.  
Stop."
 
-#get-orig-source:
-#      . debian/get-orig-source
+override_dh_installman:
+        # try to create man pages whereever possible
+       mkdir -p $(mandir)
+       $(HELP2MAN) \
+            --name='Distance-based alignment of DNA, RNA and proteins' \
+            $(bindir)/fsa > $(mandir)/fsa.1
+       $(HELP2MAN) \
+            --name='Find the most-parsimonious ordering of indels' \
+            $(bindir)/gapcleaner > $(mandir)/gapcleaner.1
+       $(HELP2MAN) \
+            --name='Calculate the percentage identity of the passed alignment' 
\
+            $(bindir)/percentid > $(mandir)/percentid.1
+       $(HELP2MAN) \
+            --name='Find the codon alignment corresponding to the given 
protein alignment' \
+            $(bindir)/prot2codon > $(mandir)/prot2codon.1
+       $(HELP2MAN) \
+            --name='Slice a subsequence from an input FASTA file' \
+            $(bindir)/slice_fasta > $(mandir)/slice_fasta.1
+       $(HELP2MAN) \
+            --name='Slice subsequences from an input FASTA file' \
+            $(bindir)/slice_fasta_gff > $(mandir)/slice_fasta_gff.1
+       $(HELP2MAN) \
+            --name='Translate input nucleotide sequences into protein 
sequence.' \
+            $(bindir)/translate > $(mandir)/translate.1
+
+


_______________________________________________
debian-med-commit mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to