From e525b169f2879456e8f4c507633180ce63b26e28 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 9 Mar 2015 12:41:46 -0500 Subject: attempt to remove major version hard-coding from linux packaging tools --- tools/linux_packaging/uninstall.sh.in | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tools/linux_packaging/uninstall.sh.in') 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 -- cgit v1.2.3