summaryrefslogtreecommitdiffstats
path: root/dilos
diff options
context:
space:
mode:
authorDenis Kozadaev <denis@dilos.org>2019-08-25 21:27:14 +0300
committerSlávek Banko <slavek.banko@axis.cz>2019-09-10 18:16:40 +0200
commit066f870974af451f06a584e433cfd5179a1fc471 (patch)
tree01689c0dd860e0ccdf6bb7946485da42188a5fac /dilos
parent4d80a99d10150a4098ff08654050f105d3ca1a6e (diff)
downloadtde-packaging-066f870974af451f06a584e433cfd5179a1fc471.tar.gz
tde-packaging-066f870974af451f06a584e433cfd5179a1fc471.zip
DilOS: Use BASEDIR for pre/post scripts
Signed-off-by: Denis Kozadaev <denis@dilos.org> (cherry picked from commit 20127da5fe504b6e6b79c19ab57103f2dd2b2c24)
Diffstat (limited to 'dilos')
-rw-r--r--dilos/dependencies/tqt3/debian/libtqt3-mt.postrm8
-rw-r--r--dilos/dependencies/tqt3/debian/tqt3-assistant.postinst3
-rw-r--r--dilos/dependencies/tqt3/debian/tqt3-assistant.prerm3
-rw-r--r--dilos/dependencies/tqt3/debian/tqt3-designer.postinst3
-rw-r--r--dilos/dependencies/tqt3/debian/tqt3-designer.prerm3
-rw-r--r--dilos/dependencies/tqt3/debian/tqt3-dev-tools.postinst3
-rw-r--r--dilos/dependencies/tqt3/debian/tqt3-dev-tools.prerm3
-rw-r--r--dilos/dependencies/tqt3/debian/tqt3-linguist.postinst3
-rw-r--r--dilos/dependencies/tqt3/debian/tqt3-linguist.prerm3
-rw-r--r--dilos/dependencies/tqt3/debian/tqt3-qtconfig.postinst3
-rw-r--r--dilos/dependencies/tqt3/debian/tqt3-qtconfig.prerm3
11 files changed, 36 insertions, 2 deletions
diff --git a/dilos/dependencies/tqt3/debian/libtqt3-mt.postrm b/dilos/dependencies/tqt3/debian/libtqt3-mt.postrm
index bb679158a..6556affdc 100644
--- a/dilos/dependencies/tqt3/debian/libtqt3-mt.postrm
+++ b/dilos/dependencies/tqt3/debian/libtqt3-mt.postrm
@@ -1,8 +1,12 @@
#!/bin/sh
+if [ "${BASEDIR:=/}" = "/" ]; then
+ BASEDIR=""
+fi
+
if [ "$1" = "purge" ]; then
- if [ -d "/usr/share/doc/libtqt3-mt/" ]; then
- rm -rf /usr/share/doc/libtqt3-mt/
+ if [ -d "${BASEDIR}/usr/share/doc/libtqt3-mt/" ]; then
+ rm -rf ${BASEDIR}/usr/share/doc/libtqt3-mt/
fi
fi
diff --git a/dilos/dependencies/tqt3/debian/tqt3-assistant.postinst b/dilos/dependencies/tqt3/debian/tqt3-assistant.postinst
index 041457133..2852229d7 100644
--- a/dilos/dependencies/tqt3/debian/tqt3-assistant.postinst
+++ b/dilos/dependencies/tqt3/debian/tqt3-assistant.postinst
@@ -1,6 +1,9 @@
#!/bin/sh
set -e
+if [ "${BASEDIR:=/}" = "/" ]; then
+ BASEDIR=""
+fi
update-alternatives --install \
/usr/bin/assistant assistant "/usr/bin/tqassistant" "45" \
diff --git a/dilos/dependencies/tqt3/debian/tqt3-assistant.prerm b/dilos/dependencies/tqt3/debian/tqt3-assistant.prerm
index 36371091e..048730aa0 100644
--- a/dilos/dependencies/tqt3/debian/tqt3-assistant.prerm
+++ b/dilos/dependencies/tqt3/debian/tqt3-assistant.prerm
@@ -1,6 +1,9 @@
#!/bin/sh
set -e
+if [ "${BASEDIR:=/}" = "/" ]; then
+ BASEDIR=""
+fi
case "$1" in
upgrade) ;;
diff --git a/dilos/dependencies/tqt3/debian/tqt3-designer.postinst b/dilos/dependencies/tqt3/debian/tqt3-designer.postinst
index 91d69ce08..2cf5abe7f 100644
--- a/dilos/dependencies/tqt3/debian/tqt3-designer.postinst
+++ b/dilos/dependencies/tqt3/debian/tqt3-designer.postinst
@@ -1,6 +1,9 @@
#!/bin/sh
set -e
+if [ "${BASEDIR:=/}" = "/" ]; then
+ BASEDIR=""
+fi
update-alternatives --install \
/usr/bin/designer designer "/usr/bin/tqdesigner" "45" \
diff --git a/dilos/dependencies/tqt3/debian/tqt3-designer.prerm b/dilos/dependencies/tqt3/debian/tqt3-designer.prerm
index 93376ef35..02cf2ff66 100644
--- a/dilos/dependencies/tqt3/debian/tqt3-designer.prerm
+++ b/dilos/dependencies/tqt3/debian/tqt3-designer.prerm
@@ -1,6 +1,9 @@
#!/bin/sh
set -e
+if [ "${BASEDIR:=/}" = "/" ]; then
+ BASEDIR=""
+fi
case "$1" in
upgrade) ;;
diff --git a/dilos/dependencies/tqt3/debian/tqt3-dev-tools.postinst b/dilos/dependencies/tqt3/debian/tqt3-dev-tools.postinst
index b6c833de8..1ea211dc0 100644
--- a/dilos/dependencies/tqt3/debian/tqt3-dev-tools.postinst
+++ b/dilos/dependencies/tqt3/debian/tqt3-dev-tools.postinst
@@ -1,6 +1,9 @@
#!/bin/sh
set -e
+if [ "${BASEDIR:=/}" = "/" ]; then
+ BASEDIR=""
+fi
update-alternatives --install \
/usr/bin/moc moc "/usr/bin/tqmoc" "45" \
diff --git a/dilos/dependencies/tqt3/debian/tqt3-dev-tools.prerm b/dilos/dependencies/tqt3/debian/tqt3-dev-tools.prerm
index 0ec40c9e9..1f8b6a46c 100644
--- a/dilos/dependencies/tqt3/debian/tqt3-dev-tools.prerm
+++ b/dilos/dependencies/tqt3/debian/tqt3-dev-tools.prerm
@@ -1,6 +1,9 @@
#!/bin/sh
set -e
+if [ "${BASEDIR:=/}" = "/" ]; then
+ BASEDIR=""
+fi
case "$1" in
upgrade) ;;
diff --git a/dilos/dependencies/tqt3/debian/tqt3-linguist.postinst b/dilos/dependencies/tqt3/debian/tqt3-linguist.postinst
index 4c51e97bf..1acec2d69 100644
--- a/dilos/dependencies/tqt3/debian/tqt3-linguist.postinst
+++ b/dilos/dependencies/tqt3/debian/tqt3-linguist.postinst
@@ -1,6 +1,9 @@
#!/bin/sh
set -e
+if [ "${BASEDIR:=/}" = "/" ]; then
+ BASEDIR=""
+fi
update-alternatives --install \
/usr/bin/linguist linguist "/usr/bin/tqlinguist" "45" \
diff --git a/dilos/dependencies/tqt3/debian/tqt3-linguist.prerm b/dilos/dependencies/tqt3/debian/tqt3-linguist.prerm
index 47d704eb8..4037445d0 100644
--- a/dilos/dependencies/tqt3/debian/tqt3-linguist.prerm
+++ b/dilos/dependencies/tqt3/debian/tqt3-linguist.prerm
@@ -1,6 +1,9 @@
#!/bin/sh
set -e
+if [ "${BASEDIR:=/}" = "/" ]; then
+ BASEDIR=""
+fi
case "$1" in
upgrade) ;;
diff --git a/dilos/dependencies/tqt3/debian/tqt3-qtconfig.postinst b/dilos/dependencies/tqt3/debian/tqt3-qtconfig.postinst
index 68671a6ef..ffe1572da 100644
--- a/dilos/dependencies/tqt3/debian/tqt3-qtconfig.postinst
+++ b/dilos/dependencies/tqt3/debian/tqt3-qtconfig.postinst
@@ -1,6 +1,9 @@
#!/bin/sh
set -e
+if [ "${BASEDIR:=/}" = "/" ]; then
+ BASEDIR=""
+fi
update-alternatives --install \
/usr/bin/qtconfig qtconfig "/usr/bin/tqtconfig" "45" \
diff --git a/dilos/dependencies/tqt3/debian/tqt3-qtconfig.prerm b/dilos/dependencies/tqt3/debian/tqt3-qtconfig.prerm
index 27f898ea3..5024559d2 100644
--- a/dilos/dependencies/tqt3/debian/tqt3-qtconfig.prerm
+++ b/dilos/dependencies/tqt3/debian/tqt3-qtconfig.prerm
@@ -1,6 +1,9 @@
#!/bin/sh
set -e
+if [ "${BASEDIR:=/}" = "/" ]; then
+ BASEDIR=""
+fi
case "$1" in
upgrade) ;;