paulxstretch/linux/uninstall.sh

35 lines
735 B
Bash
Raw Normal View History

#!/bin/bash
PREFIX=/usr/local
if [ -n "$1" ] ; then
PREFIX="$1"
fi
echo "Un-Installing PaulXStretch from ${PREFIX} ... (specify destination as command line argument if you have it elsewhere)"
if [ -f ${PREFIX}/bin/paulxstretch ] ; then
if ! rm -f ${PREFIX}/bin/paulxstretch ; then
echo
echo "Looks like you need to run this with 'sudo $0'"
exit 2
fi
fi
rm -f ${PREFIX}/share/applications/paulxstretch.desktop
rm -f ${PREFIX}/pixmaps/paulxstretch.png
rm -rf ${PREFIX}/lib/vst3/PaulXStretch.vst3
2022-06-16 17:27:25 +00:00
if [ x"$SUDO_USER" != x ] ; then
CLAPDIR=`eval echo ~$SUDO_USER/.clap`
rm -f ${CLAPDIR}/PaulXStretch.clap
else
CLAPDIR=$HOME/.clap
rm -f ${CLAPDIR}/PaulXStretch.clap
fi
echo "PaulXStretch uninstalled"