2022-04-19 22:35:40 +00:00
|
|
|
#!/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
|
|
|
|
|
|
|
|
|
2022-04-19 22:35:40 +00:00
|
|
|
echo "PaulXStretch uninstalled"
|