Add sys/purge.sh script

This commit is contained in:
pancake 2015-07-06 22:50:25 +02:00
parent 48b4c474dc
commit 5af8ce570e

9
sys/purge.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
PREFIX="$1"
if [ -z "${PREFIX}" ]; then
PREFIX=/usr
fi
[ -z "${SUDO}" ] && SUDO=sudo
echo "Uninstalling r2 from ${PREFIX}..."
./configure --prefix="${PREFIX}"
${SUDO} make purge