mupen64plus-oldsvn/uninstall.sh
James Hood eafbf49b66 -Created install.sh and uninstall.sh scripts in trunk. These scripts will be used to do install/uninstall in the source and binary distributions for Mupen64Plus.
-Modified top-level Makefile so 'make install' and 'make uninstall' call install.sh and uninstall.sh, respectively.
2008-03-17 06:18:41 +00:00

34 lines
536 B
Bash
Executable file

#!/bin/sh
#
# mupen64plus uninstall script
#
RM=/bin/rm
usage()
{
echo "usage: $(basename $0) [prefix]"
echo -e "\tprefix - install prefix (default: /usr/local)"
}
if [ $# -gt 1 ]; then
usage
exit 1
fi
if [ $# -eq 1 ]; then
PREFIX=$1
else
PREFIX=/usr/local
fi
BINDIR=${PREFIX}/bin
INSTALLDIR=${PREFIX}/share/mupen64plus
echo "Uninstalling Mupen64Plus from $PREFIX"
echo "Removing ${BINDIR}/mupen64plus"
$RM -f "${BINDIR}/mupen64plus" || exit $?
echo "Removing ${INSTALLDIR}"
$RM -rf "${INSTALLDIR}" || exit $?
echo "Done."