summaryrefslogtreecommitdiff
path: root/tools/linux_packaging/uninstall.sh.in
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2015-03-09 12:41:46 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2015-03-09 12:42:23 -0500
commite525b169f2879456e8f4c507633180ce63b26e28 (patch)
treede562ced1d92709e3222b34486362a6e8032e0ef /tools/linux_packaging/uninstall.sh.in
parent63c4f8ad3f175b51382c2c4af885baf04d1c613b (diff)
attempt to remove major version hard-coding from linux packaging tools
Diffstat (limited to 'tools/linux_packaging/uninstall.sh.in')
-rw-r--r--tools/linux_packaging/uninstall.sh.in7
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/linux_packaging/uninstall.sh.in b/tools/linux_packaging/uninstall.sh.in
index c1d6cf561e..20aa1b688d 100644
--- a/tools/linux_packaging/uninstall.sh.in
+++ b/tools/linux_packaging/uninstall.sh.in
@@ -7,6 +7,7 @@
#
#####################################
+MAJOR_VERSION="%REPLACE_MAJOR_VERSION%"
PGM_NAME="%REPLACE_PGM%"
PGM_VENDOR="%REPLACE_VENDOR%"
@@ -160,14 +161,14 @@ then
fi
# delete the bin link if it is linked to this version
- if [ -e "${USER_BIN_DIR}/${PGM_NAME}3" ];
+ if [ -e "${USER_BIN_DIR}/${PGM_NAME}${MAJOR_VERSION}" ];
then
- BIN_LINK_TARGET=$(readlink "${USER_BIN_DIR}/${PGM_NAME}3")
+ BIN_LINK_TARGET=$(readlink "${USER_BIN_DIR}/${PGM_NAME}${MAJOR_VERSION}")
BIN_LINK_TARGET_DIR=$(dirname "${BIN_LINK_TARGET}")
if [ "${BIN_LINK_TARGET_DIR}" = "${PGM_PATH}/bin" ];
then
- ${SUPER} rm -f "${USER_BIN_DIR}/${PGM_NAME}3"
+ ${SUPER} rm -f "${USER_BIN_DIR}/${PGM_NAME}${MAJOR_VERSION}"
fi
fi