paulxstretch/linux/uninstall.sh
2022-06-16 13:27:25 -04:00

35 lines
735 B
Bash
Executable File

#!/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
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"