[med-svn] [python-pbcore] 04/12: Install scripts to /usr/bin, but give them sensible names

Afif Elghraoui afif-guest at moszumanska.debian.org
Sun Sep 20 08:25:27 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-pbcore.

commit 65617fc9744629a90b874899d3f8280c4f9c6127
Author: Afif Elghraoui <afif at ghraoui.name>
Date:   Sat Sep 19 22:33:58 2015 -0700

    Install scripts to /usr/bin, but give them sensible names
    
    The names of scripts installed by this package are too vague
    (dataset.py and .open) to be installed system-wide. They were
    previously put into /usr/share/doc, but they should be on the PATH.
---
 debian/README.Debian | 6 +++---
 debian/rules         | 6 ++----
 2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/debian/README.Debian b/debian/README.Debian
index 48e8cc8..163e7f4 100644
--- a/debian/README.Debian
+++ b/debian/README.Debian
@@ -7,7 +7,7 @@ system path:
 * dataset.py
 * .open
 
-These have been made available instead in /usr/share/doc/python-pbcore/scripts/
-and .open has been renamed to open (so that it is no longer hidden).
+The vagueness of these names makes them unsuitable for system-wide installation,
+so they have been renamed to pbdataset and pbopen in this package.
 
- -- Afif Elghraoui <afif at ghraoui.name>, Tue, 11 Aug 2015 00:19:59 -0700
+ -- Afif Elghraoui <afif at ghraoui.name>, Sat, 19 Sep 2015 22:38:02 -0700
diff --git a/debian/rules b/debian/rules
index e265831..ca452e7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,7 +9,6 @@ export PYBUILD_AFTER_INSTALL = \
            {destdir}/{install_dir}/pbcore/data/datasets/*.xml
 
 DESTDIR = $(CURDIR)/debian/$(DEB_SOURCE)
-SCRIPTSDIR = $(DESTDIR)/usr/share/doc/$(DEB_SOURCE)/scripts
 
 %:
 	LC_ALL=C.UTF-8 dh $@ --with python2 --buildsystem=pybuild
@@ -20,9 +19,8 @@ override_dh_auto_build:
 
 override_dh_install:
 	dh_install
-	mkdir -p $(SCRIPTSDIR)
-	mv $(DESTDIR)/usr/bin/.open $(SCRIPTSDIR)/open
-	mv $(DESTDIR)/usr/bin/dataset.py $(SCRIPTSDIR)/
+	mv $(DESTDIR)/usr/bin/.open $(DESTDIR)/usr/bin/pbopen
+	mv $(DESTDIR)/usr/bin/dataset.py $(DESTDIR)/usr/bin/pbdataset
 	mv CHANGELOG.org $(DESTDIR)/usr/share/doc/$(DEB_SOURCE)/changelog
 
 override_dh_installdocs:

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



More information about the debian-med-commit mailing list