[med-svn] [pbalign] 01/09: Add name descriptions while generating manpages

Afif Elghraoui afif-guest at moszumanska.debian.org
Sun Sep 6 09:03:18 UTC 2015


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

afif-guest pushed a commit to branch master
in repository pbalign.

commit 5a96f1d32425906e6791051ed9b9a42173ccbfc3
Author: Afif Elghraoui <afif at ghraoui.name>
Date:   Sat Sep 5 19:06:35 2015 -0700

    Add name descriptions while generating manpages
---
 debian/rules | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/debian/rules b/debian/rules
index b67fdf3..12a6d44 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,14 +15,24 @@ MANDIR = $(BUILDDIR)/usr/share/man/man1
 %:
 	LC_ALL=C.UTF-8 dh $@ --with=python2 --buildsystem=pybuild
 
+override_dh_install: SHELL=bash
 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`; \
+	declare -A description;						       \
+	description=(							       \
+	  [pbalign]="Mapping PacBio sequences to references"		       \
+	  [maskAlignedReads.py]="Mask aligned reads in regions file"	       \
+	  [createChemistryHeader.py]="Create a SAM header with PacBio sequencing chemistry information" \
+	  [loadChemistry.py]="Load PacBio sequencing chemistry information"    \
+	  [extractUnmappedSubreads.py]="Extract unmapped subreads from a fasta file" \
+	);								       \
+	export PYTHONPATH=$(BUILDDIR)/usr/lib/python2.7/dist-packages;	       \
+	for executable in $(BUILDDIR)/usr/bin/*;			       \
+	do								       \
+	    $(HELP2MAN) --name="$${description[`basename $$executable`]}"      \
+	      $$executable > $(MANDIR)/`basename $$executable.1`;	       \
 	done
 	# Remove .py suffix from scripts (we'll make symlinks to replace them)
 	for script in extractUnmappedSubreads			\

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



More information about the debian-med-commit mailing list