The following commit has been merged in the master branch:
commit 757bcd522a53799e2e8caa0c09bd3c575f5cd666
Author: Andreas Tille <[email protected]>
Date:   Fri May 11 11:20:07 2012 +0200

    Add some manpages via help2man - please follow these examples and add more

diff --git a/debian/changelog b/debian/changelog
index bc0ad4f..819b0c0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ tophat (2.0.0-2) unstable; urgency=low
   * debian/patces/bashism_in_shell_script.patch: Fix bashism in shell script
     Closes: #671813
   * debhelper 9 (control+compat)
+  * debian/rules: Create some manpages using help2man
 
  -- Andreas Tille <[email protected]>  Sun, 06 May 2012 13:26:38 +0200
 
diff --git a/debian/control b/debian/control
index d27212c..cd9f1f0 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,7 @@ Uploaders: Carlos Borroto <[email protected]>,
  Andreas Tille <[email protected]>
 Build-Depends: debhelper (>= 9), autotools-dev, libbam-dev (>=0.1.16),
  zlib1g-dev, dh-autoreconf, python (>=2.6.6-3~), seqan-dev (>= 1.3~),
- libboost-thread-dev
+ libboost-thread-dev, help2man
 Standards-Version: 3.9.3
 Homepage: http://tophat.cbcb.umd.edu/
 Vcs-Git: git://git.debian.org/debian-med/tophat.git
diff --git a/debian/rules b/debian/rules
index 4ec2e3b..82e712a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,8 +3,27 @@
 # Uncomment this to turn on verbose mode.
 export DH_VERBOSE=1
 
+pkg := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
+version=$(shell dpkg-parsechangelog -ldebian/changelog | grep Version: | cut 
-f2 -d' ' | cut -f1 -d- )
+mandir=$(CURDIR)/debian/$(pkg)/usr/share/man/man1
+bindir=$(CURDIR)/debian/$(pkg)/usr/bin
+
 %:
        dh $@ --with autoreconf
 
 override_dh_builddeb:
        dh_builddeb -- -Z xz
+
+override_dh_auto_install:
+       dh_auto_install
+
+       # try to create man pages whereever possible
+       mkdir -p $(mandir)
+       help2man --no-info --no-discard-stderr \
+           --name='converts bam directly into fastx' \
+           --version-string="$(version)" \
+                $(bindir)/bam2fastx > $(mandir)/bam2fastx.1
+       help2man --no-info --no-discard-stderr \
+           --name='TopHat maps short sequences from spliced transcripts to 
whole genomes' \
+           --version-string="$(version)" \
+                $(bindir)/tophat > $(mandir)/tophat.1

-- 
A spliced read mapper for RNA-Seq

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

Reply via email to