[med-svn] [python-pbalign] 03/07: Make scripts without .py extensions and add symlinks with original names

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 48b2a16cd5bd2d0c757264c6106230bacf009ec4
Author: Afif Elghraoui <afif at ghraoui.name>
Date:   Sat Sep 5 00:40:59 2015 -0700

    Make scripts without .py extensions and add symlinks with original names
---
 debian/links |  4 ++++
 debian/rules | 12 ++++++++++++
 2 files changed, 16 insertions(+)

diff --git a/debian/links b/debian/links
new file mode 100644
index 0000000..0dc7008
--- /dev/null
+++ b/debian/links
@@ -0,0 +1,4 @@
+/usr/bin/extractUnmappedSubreads	/usr/bin/extractUnmappedSubreads.py
+/usr/bin/loadChemistry			/usr/bin/loadChemistry.py
+/usr/bin/createChemistryHeader		/usr/bin/createChemistryHeader.py
+/usr/bin/maskAlignedReads		/usr/bin/maskAlignedReads.py
diff --git a/debian/rules b/debian/rules
index 0c8c1d6..6216383 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,19 @@
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/default.mk
 
+BINDIR=$(CURDIR)/debian/$(DEB_SOURCE)/usr/bin
+
 export PYBUILD_NAME = pbalign
 
 %:
 	LC_ALL=C.UTF-8 dh $@ --with=python2 --buildsystem=pybuild
+
+override_dh_install:
+	dh_install
+	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