[med-svn] [python-pbalign] 06/07: Merge branch 'topic/autogenerate-manpages'
Afif Elghraoui
afif-guest at moszumanska.debian.org
Sat Sep 5 09:29:40 UTC 2015
This is an automated email from the git hooks/post-receive script.
afif-guest pushed a commit to branch master
in repository python-pbalign.
commit ccf420e96b5a479507ab4894cff649ca8bba78f2
Merge: 48b2a16 fe98243
Author: Afif Elghraoui <afif at ghraoui.name>
Date: Sat Sep 5 01:13:48 2015 -0700
Merge branch 'topic/autogenerate-manpages'
Conflicts:
debian/rules
debian/control | 5 ++++-
debian/rules | 16 ++++++++++++++--
2 files changed, 18 insertions(+), 3 deletions(-)
diff --cc debian/rules
index 6216383,249057d..c5c2619
--- a/debian/rules
+++ b/debian/rules
@@@ -5,19 -5,20 +5,31 @@@
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
- BINDIR=$(CURDIR)/debian/$(DEB_SOURCE)/usr/bin
-
export PYBUILD_NAME = pbalign
+ BUILDDIR = $(CURDIR)/debian/$(DEB_SOURCE)
++BINDIR=$(CURDIR)/debian/$(DEB_SOURCE)/usr/bin
+ HELP2MAN = help2man --no-info --version-string $(DEB_VERSION_UPSTREAM)
+ MANDIR = $(BUILDDIR)/usr/share/man/man1
+
%:
LC_ALL=C.UTF-8 dh $@ --with=python2 --buildsystem=pybuild
-override_dh_auto_install:
- dh_auto_install
+override_dh_install:
+ dh_install
++ # Create manpages
+ mkdir -p $(MANDIR)
+ export PYTHONPATH=$(BUILDDIR)/usr/lib/python2.7/dist-packages; \
+ for executable in $(BUILDDIR)/usr/bin/*; \
+ do \
+ $(HELP2MAN) $$executable > $(MANDIR)/`basename $$executable.1`; \
+ done
++ # Remove .py suffix from scripts (we'll make symlinks to replace them)
+ for script in extractUnmappedSubreads \
+ loadChemistry \
+ createChemistryHeader \
+ maskAlignedReads; \
+ do \
+ mv $(BINDIR)/$$script.py $(BINDIR)/$$script; \
+ done
++
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/python-pbalign.git
More information about the debian-med-commit
mailing list