[med-svn] [python-pbh5tools] 06/06: Remove .py suffix from scripts installed in /usr/bin

Afif Elghraoui afif-guest at moszumanska.debian.org
Thu Aug 13 07:17:50 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-pbh5tools.

commit 3fb7ee276d6e1f64a1efeedbec97989a8d0d4cf8
Author: Afif Elghraoui <afif at ghraoui.name>
Date:   Wed Aug 12 23:55:39 2015 -0700

    Remove .py suffix from scripts installed in /usr/bin
---
 debian/rules | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/debian/rules b/debian/rules
index 159c935..2915bb9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,11 +3,20 @@
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/default.mk
 
+BINDIR=$(CURDIR)/debian/$(DEB_SOURCE)/usr/bin
+
 export PYBUILD_NAME = pbh5tools
 
 %:
 	LC_ALL=C.UTF-8 dh $@ --with python2 --buildsystem=pybuild
 
+override_dh_install:
+	dh_install
+	# We do this here rather than in .install files so that debhelper
+	# takes care of the #!/usr/bin/env lines for us
+	mv $(BINDIR)/bash5tools.py $(BINDIR)/bash5tools
+	mv $(BINDIR)/cmph5tools.py $(BINDIR)/cmph5tools
+
 # cram is not in Debian, but required to run some of the tests.
 # This override skips building the tests to allow full package build in
 # the meantime.

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



More information about the debian-med-commit mailing list