DilOS: Use BASEDIR for pre/post scripts

Signed-off-by: Denis Kozadaev <denis@dilos.org>
pull/22/head
Denis Kozadaev 5 years ago committed by Slávek Banko
parent 9e40aca75e
commit 20127da5fe

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