[med-svn] [seqan2] 01/05: fix manpage generation

Michael Crusoe misterc-guest at moszumanska.debian.org
Mon Oct 10 14:05:21 UTC 2016


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

misterc-guest pushed a commit to branch debian-experimental
in repository seqan2.

commit 3930bd30b139cac6a6b96cfed5558a01a2a8f514
Author: Michael R. Crusoe <michael.crusoe at gmail.com>
Date:   Sun Oct 9 05:34:38 2016 -0700

    fix manpage generation
---
 debian/changelog         |  1 +
 debian/generate_manpages |  4 ++--
 debian/rules             | 19 ++++++++++---------
 3 files changed, 13 insertions(+), 11 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 199deb7..371d82a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ seqan2 (2.2.0+dfsg-3) unstable; urgency=medium
   * Fix arch specific build. Closes: #840023
   * Remove shlibs:Depends from include-only library package
   * More spelling fixes
+  * Fix manpage generation
 
  -- Michael R. Crusoe <michael.crusoe at gmail.com>  Sat, 08 Oct 2016 10:08:40 -0700
 
diff --git a/debian/generate_manpages b/debian/generate_manpages
index 665e313..636d9b3 100755
--- a/debian/generate_manpages
+++ b/debian/generate_manpages
@@ -1,8 +1,8 @@
 #!/bin/sh
 # generate manpages using help2man
 
-pkg=`dpkg-parsechangelog | sed -n 's/^Source: //p'`-apps
-version=`dpkg-parsechangelog -ldebian/changelog | grep Version: | cut -f2 -d' ' | cut -f1 -d-`
+pkg=seqan-apps
+version=`dpkg-parsechangelog -S version`
 bindir=`pwd`/debian/${pkg}/usr/bin
 mandir=`pwd`/debian/${pkg}/usr/share/man/man1
 
diff --git a/debian/rules b/debian/rules
index b17dc7c..f230ef8 100755
--- a/debian/rules
+++ b/debian/rules
@@ -66,16 +66,17 @@ override_dh_auto_clean:
 	rm -rf orig seqan-2.pc
 
 override_dh_installman:
-	for bin in `ls $(CURDIR)/debian/$(pkgapps)/usr/lib/seqan/bin` ; do \
-	    if [ -x $(CURDIR)/debian/$(pkgapps)/usr/lib/seqan/bin/`basename $${bin}` ] ; then \
-	        ln -s ../lib/seqan/bin/`basename $${bin}` $(CURDIR)/debian/$(pkgapps)/usr/bin/`basename $${bin}` ; \
-	    fi ; \
-	    if echo $${bin} | grep -q '\.sh$$' ; then \
-	        ln -s ../lib/seqan/bin/$${bin} $(CURDIR)/debian/$(pkgapps)/usr/bin/`basename $${bin} .sh` ; \
-	    fi ; \
-	done
-	# we generate only those manpages where binaries are linked to /usr/bin
+	dh_link
 	$(CURDIR)/debian/generate_manpages
+	#for bin in `ls $(CURDIR)/debian/$(pkgapps)/usr/lib/seqan/bin` ; do \
+	#    if [ -x $(CURDIR)/debian/$(pkgapps)/usr/lib/seqan/bin/`basename $${bin}` ] ; then \
+	#        ln -s ../lib/seqan/bin/`basename $${bin}` $(CURDIR)/debian/$(pkgapps)/usr/bin/`basename $${bin}` ; \
+	#    fi ; \
+	#    if echo $${bin} | grep -q '\.sh$$' ; then \
+	#        ln -s ../lib/seqan/bin/$${bin} $(CURDIR)/debian/$(pkgapps)/usr/bin/`basename $${bin} .sh` ; \
+	#    fi ; \
+	#done
+	# we generate only those manpages where binaries are linked to /usr/bin
 	dh_installman
 
 override_dh_fixperms-indep:

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



More information about the debian-med-commit mailing list