This is an automated email from the git hooks/post-receive script.

malex-guest pushed a commit to branch master
in repository cufflinks.

commit bb8cf0f63aabf9810c074f2b1c779d4bbc586a03
Author: Alexandre Mestiashvili <[email protected]>
Date:   Fri Apr 11 14:10:35 2014 +0200

     d/rules: attempt to generate man pages automatically
     d/control: Build-Depends: add help2man
---
 debian/control |  1 +
 debian/rules   | 20 ++++++++++++++++++++
 2 files changed, 21 insertions(+)

diff --git a/debian/control b/debian/control
index a12ebbb..e5d58ea 100644
--- a/debian/control
+++ b/debian/control
@@ -6,6 +6,7 @@ Uploaders: Alexandre Mestiashvili <[email protected]>,
 Section: non-free/science
 Priority: optional
 Build-Depends: debhelper (>= 9),
+               help2man,
                autotools-dev,
                libboost-dev (>=1.47.0),
                libboost-thread-dev (>=1.47.0),
diff --git a/debian/rules b/debian/rules
index 5c7286f..99d94cb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,6 +3,12 @@
 # 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 --parallel
 
@@ -15,3 +21,17 @@ override_dh_auto_clean:
 
 override_dh_builddeb:
        dh_builddeb -- -Z xz
+
+override_dh_installman:
+       dh_installman
+
+       # try to create man pages whereever possible
+       mkdir -p $(mandir)
+       for i in cuffcompare compress_gtf gffread gtf_to_sam cuffmerge \
+cuffdiff cuffquant cuffnorm cufflinks ; do \
+       help2man --no-info --no-discard-stderr  -h "" \
+           --name='cufflinks suite component' \
+           --version-string="$(version)" \
+               $(bindir)/$$i > $(mandir)/$$i.1; \
+       done
+

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/debian-med/cufflinks.git

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

Reply via email to