mirror of
https://github.com/radareorg/radare2.git
synced 2025-04-02 09:31:45 +00:00
Fixed sys/purge.sh to work on systems where the GNU make binary is called "gmake".
This commit is contained in:
parent
a6dccd04b2
commit
9a8263eafb
@ -1,4 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
MAKE=make
|
||||
gmake --help >/dev/null 2>&1
|
||||
[ $? = 0 ] && MAKE=gmake
|
||||
|
||||
|
||||
PREFIX="$1"
|
||||
if [ -z "${PREFIX}" ]; then
|
||||
PREFIX=/usr
|
||||
@ -6,4 +12,4 @@ fi
|
||||
[ -z "${SUDO}" ] && SUDO=sudo
|
||||
echo "Uninstalling r2 from ${PREFIX}..."
|
||||
./configure --prefix="${PREFIX}"
|
||||
${SUDO} make purge
|
||||
${SUDO} ${MAKE} purge
|
||||
|
Loading…
x
Reference in New Issue
Block a user