2015-07-07 04:50:25 +08:00
|
|
|
#!/bin/sh
|
2015-11-01 03:49:22 +08:00
|
|
|
|
|
|
|
MAKE=make
|
|
|
|
gmake --help >/dev/null 2>&1
|
|
|
|
[ $? = 0 ] && MAKE=gmake
|
|
|
|
|
|
|
|
|
2015-07-07 04:50:25 +08:00
|
|
|
PREFIX="$1"
|
|
|
|
if [ -z "${PREFIX}" ]; then
|
|
|
|
PREFIX=/usr
|
|
|
|
fi
|
|
|
|
[ -z "${SUDO}" ] && SUDO=sudo
|
|
|
|
echo "Uninstalling r2 from ${PREFIX}..."
|
|
|
|
./configure --prefix="${PREFIX}"
|
2015-11-01 03:49:22 +08:00
|
|
|
${SUDO} ${MAKE} purge
|