From 5d2c2b27a6323e2666378b986129b2a7c2c39e5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sun, 6 Feb 2022 16:04:24 +0100 Subject: New upstream version 5.2.2GA --- distribution/posix/prerm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 distribution/posix/prerm (limited to 'distribution/posix/prerm') diff --git a/distribution/posix/prerm b/distribution/posix/prerm new file mode 100755 index 0000000..3c5db28 --- /dev/null +++ b/distribution/posix/prerm @@ -0,0 +1,22 @@ +#!/bin/sh +LOGF=/tmp/xtrkcad-setup.log +if [ -f "${LOGF}" ] ; then + chmod 666 ${LOGF} + echo prerm: $* >> ${LOGF} +else + LOGF=/dev/null +fi + +if [ -d /usr/local/share/xtrkcad ] ; then + INSTALLDIR=/usr/local/share/xtrkcad +elif [ -d /usr/share/xtrkcad ] ; then + INSTALLDIR=/usr/share/xtrkcad +else + echo No existing XTrkCad install >> ${LOGF} + exit 1 +fi + +( su -c "sh ${INSTALLDIR}/xtrkcad-setup remove ${INSTALLDIR}" -l $SUDO_USER ) >> ${LOGF} 2>&1 + +exit 0 + -- cgit v1.2.3 From a14a7a0ccc9de76aeab0b2e4bbf58f1a79deedc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 3 Jul 2024 10:19:30 +0200 Subject: New upstream version 5.3.0GA --- distribution/posix/prerm | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'distribution/posix/prerm') diff --git a/distribution/posix/prerm b/distribution/posix/prerm index 3c5db28..b5ae917 100755 --- a/distribution/posix/prerm +++ b/distribution/posix/prerm @@ -7,14 +7,7 @@ else LOGF=/dev/null fi -if [ -d /usr/local/share/xtrkcad ] ; then - INSTALLDIR=/usr/local/share/xtrkcad -elif [ -d /usr/share/xtrkcad ] ; then - INSTALLDIR=/usr/share/xtrkcad -else - echo No existing XTrkCad install >> ${LOGF} - exit 1 -fi +INSTALLDIR=/usr/share/xtrkcad ( su -c "sh ${INSTALLDIR}/xtrkcad-setup remove ${INSTALLDIR}" -l $SUDO_USER ) >> ${LOGF} 2>&1 -- cgit v1.2.3