mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-26 15:35:55 +00:00
16 lines
260 B
Bash
Executable File
16 lines
260 B
Bash
Executable File
#!/bin/sh
|
|
|
|
MAKE=make
|
|
gmake --help >/dev/null 2>&1
|
|
[ $? = 0 ] && MAKE=gmake
|
|
|
|
|
|
PREFIX="$1"
|
|
if [ -z "${PREFIX}" ]; then
|
|
PREFIX=/usr
|
|
fi
|
|
[ -z "${SUDO}" ] && SUDO=sudo
|
|
echo "Uninstalling r2 from ${PREFIX}..."
|
|
./configure --prefix="${PREFIX}"
|
|
${SUDO} ${MAKE} purge2
|