Fix sys/user.sh

This commit is contained in:
pancake 2015-09-08 23:47:45 +02:00
parent 16548bddee
commit 0c5f79a603
2 changed files with 7 additions and 2 deletions

View File

@ -210,6 +210,7 @@ user-install:
user-uninstall:
$(foreach mod,$(R2BINS),rm -f ~/bin/$(mod))
rm -f ~/bin/r2
-rmdir ~/bin
purge-dev:

View File

@ -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