[med-svn] [bitseq] 01/01: Move executable with scripting language extension to Debian Med dir and add links without extension to /usr/bin
Andreas Tille
tille at debian.org
Sat Dec 2 11:15:27 UTC 2017
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository bitseq.
commit ee2713d48d73ca5cee0b19973b61cfa0171a3f61
Author: Andreas Tille <tille at debian.org>
Date: Sat Dec 2 12:14:26 2017 +0100
Move executable with scripting language extension to Debian Med dir and add links without extension to /usr/bin
---
debian/rules | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/debian/rules b/debian/rules
index 3e356c2..132aa77 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,7 +1,7 @@
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
-export DH_VERBOSE=1
+# export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
@@ -9,7 +9,8 @@ include /usr/share/dpkg/default.mk
mandir=$(CURDIR)/debian/$(DEB_SOURCE)/usr/share/man/man1/
bindir=$(CURDIR)/debian/$(DEB_SOURCE)/usr/bin/
-sharedir=$(CURDIR)/debian/$(DEB_SOURCE)/usr/share/$(DEB_SOURCE)
+debianmedsysdir=/usr/lib/debian-med/bin
+debianmeddir=$(CURDIR)/debian/$(DEB_SOURCE)/$(debianmedsysdir)
%:
dh $@
@@ -59,9 +60,15 @@ override_dh_installman:
override_dh_auto_install:
find -maxdepth 1 -type f -perm /111 -exec dh_install '{}' /usr/bin ';'
- # do not provide rarely used Python scripts in /usr/bin
- mkdir -p $(sharedir)
- mv debian/$(DEB_SOURCE)/usr/bin/parseAlignment.py $(sharedir)
+ # Provide scripts with extensions in Debian Med dir and without extension in /usr/bin
+ mkdir -p $(debianmeddir)
+ mv debian/$(DEB_SOURCE)/usr/bin/*.py debian/$(DEB_SOURCE)/usr/bin/*.sh $(debianmeddir)
+ # parseAlignment.py suggests itself not to be used so do not expose this
+ for script in $(debianmeddir)/* ; do \
+ bscript=`basename $${script}` ; \
+ if [ "$${script}}" = "parseAlignment.py" ] ; then continue ; fi ; \
+ ln -s $(debianmedsysdir)/$${bscript} $(bindir)/`echo $${bscript} | sed -e 's/\.py$$//' -e 's/\.sh$$//'` ; \
+ done
get-orig-source:
mkdir -p ../tarballs
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/bitseq.git
More information about the debian-med-commit
mailing list