[python-bumps] 05/05: Move images out of /usr/lib into /usr/share
Stuart Prescott
stuart at debian.org
Fri Nov 3 14:21:37 UTC 2017
This is an automated email from the git hooks/post-receive script.
stuart pushed a commit to branch master
in repository python-bumps.
commit ba2ade33887a0598699bfb1be866857b5dd9bff8
Author: Stuart Prescott <stuart at debian.org>
Date: Sat Nov 4 01:21:25 2017 +1100
Move images out of /usr/lib into /usr/share
---
debian/relocate | 9 +++++++++
debian/rules | 5 +++++
2 files changed, 14 insertions(+)
diff --git a/debian/relocate b/debian/relocate
new file mode 100755
index 0000000..1117567
--- /dev/null
+++ b/debian/relocate
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+PACKAGE=$1
+SRC=$2
+DEST=$3
+
+mkdir -p debian/$PACKAGE/$DEST
+mv debian/$PACKAGE/$SRC debian/$PACKAGE/$DEST
+ln -sf /$DEST debian/$PACKAGE/$SRC
diff --git a/debian/rules b/debian/rules
index cd5275e..494f361 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,6 +15,11 @@ override_dh_auto_clean:
override_dh_install:
dh_install
rm debian/python-bumps/usr/bin/bumps
+ ./debian/relocate python-bumps usr/lib/python2.7/dist-packages/bumps/gui/resources usr/share/python-bumps/python
+ for py in `py3versions -i`; do \
+ ./debian/relocate python3-bumps usr/lib/$$py/dist-packages/bumps/gui/resources usr/share/python-bumps/python3; \
+ done
+ find debian/python3-bumps/usr -name __pycache__ -exec rm -rf {} +
override_dh_auto_build:
dh_auto_build
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-bumps.git
More information about the debian-science-commits
mailing list