mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-22 22:06:50 +00:00
Fix sys/user.sh
This commit is contained in:
parent
16548bddee
commit
0c5f79a603
1
Makefile
1
Makefile
@ -210,6 +210,7 @@ user-install:
|
||||
|
||||
user-uninstall:
|
||||
$(foreach mod,$(R2BINS),rm -f ~/bin/$(mod))
|
||||
rm -f ~/bin/r2
|
||||
-rmdir ~/bin
|
||||
|
||||
purge-dev:
|
||||
|
@ -30,14 +30,18 @@ if [ ! -d "${HOME}" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
ROOT="${HOME}/.radare2-prefix"
|
||||
mkdir -p "${ROOT}"
|
||||
ROOT="${HOME}/bin/prefix/radare2/"
|
||||
mkdir -p "${ROOT}/lib"
|
||||
|
||||
if [ "${HARDEN}" = 1 ]; then
|
||||
./sys/build-harden.sh "${ROOT}" && ${MAKE} symstall
|
||||
else
|
||||
./sys/build.sh "${ROOT}" && ${MAKE} symstall
|
||||
fi
|
||||
if [ $? != 0 ]; then
|
||||
echo "Oops"
|
||||
exit 1
|
||||
fi
|
||||
${MAKE} user-install
|
||||
echo
|
||||
echo radare2 is now installed in ~/.radare2-prefix
|
||||
|
Loading…
x
Reference in New Issue
Block a user