DilOS: Use BASEDIR for pre/post scripts

Signed-off-by: Denis Kozadaev <denis@dilos.org>
(cherry picked from commit 20127da5fe)
pull/92/head
Denis Kozadaev 5 years ago committed by Slávek Banko
parent 4d80a99d10
commit 066f870974

@ -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

@ -1,6 +1,9 @@
#!/bin/sh
set -e
if [ "${BASEDIR:=/}" = "/" ]; then
BASEDIR=""
fi
update-alternatives --install \
/usr/bin/assistant assistant "/usr/bin/tqassistant" "45" \

@ -1,6 +1,9 @@
#!/bin/sh
set -e
if [ "${BASEDIR:=/}" = "/" ]; then
BASEDIR=""
fi
case "$1" in
upgrade) ;;

@ -1,6 +1,9 @@
#!/bin/sh
set -e
if [ "${BASEDIR:=/}" = "/" ]; then
BASEDIR=""
fi
update-alternatives --install \
/usr/bin/designer designer "/usr/bin/tqdesigner" "45" \

@ -1,6 +1,9 @@
#!/bin/sh
set -e
if [ "${BASEDIR:=/}" = "/" ]; then
BASEDIR=""
fi
case "$1" in
upgrade) ;;

@ -1,6 +1,9 @@
#!/bin/sh
set -e
if [ "${BASEDIR:=/}" = "/" ]; then
BASEDIR=""
fi
update-alternatives --install \
/usr/bin/moc moc "/usr/bin/tqmoc" "45" \

@ -1,6 +1,9 @@
#!/bin/sh
set -e
if [ "${BASEDIR:=/}" = "/" ]; then
BASEDIR=""
fi
case "$1" in
upgrade) ;;

@ -1,6 +1,9 @@
#!/bin/sh
set -e
if [ "${BASEDIR:=/}" = "/" ]; then
BASEDIR=""
fi
update-alternatives --install \
/usr/bin/linguist linguist "/usr/bin/tqlinguist" "45" \

@ -1,6 +1,9 @@
#!/bin/sh
set -e
if [ "${BASEDIR:=/}" = "/" ]; then
BASEDIR=""
fi
case "$1" in
upgrade) ;;

@ -1,6 +1,9 @@
#!/bin/sh
set -e
if [ "${BASEDIR:=/}" = "/" ]; then
BASEDIR=""
fi
update-alternatives --install \
/usr/bin/qtconfig qtconfig "/usr/bin/tqtconfig" "45" \

@ -1,6 +1,9 @@
#!/bin/sh
set -e
if [ "${BASEDIR:=/}" = "/" ]; then
BASEDIR=""
fi
case "$1" in
upgrade) ;;

Loading…
Cancel
Save