mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-28 15:41:38 +00:00
31 lines
540 B
Bash
Executable File
31 lines
540 B
Bash
Executable File
#!/bin/sh
|
|
|
|
MAKE=make
|
|
gmake --help >/dev/null 2>&1
|
|
[ $? = 0 ] && MAKE=gmake
|
|
|
|
# find root
|
|
cd `dirname $PWD/$0` ; cd ..
|
|
|
|
# update
|
|
if [ "$1" != "--without-pull" ]; then
|
|
if [ -d .git ]; then
|
|
git branch | grep "^\* master" > /dev/null
|
|
if [ $? = 0 ]; then
|
|
echo "WARNING: Updating from remote repository"
|
|
git pull
|
|
fi
|
|
fi
|
|
else
|
|
shift
|
|
fi
|
|
|
|
[ "`id -u`" = 0 ] || SUDO=sudo
|
|
[ -n "${NOSUDO}" ] && SUDO=
|
|
|
|
if [ "${HARDEN}" = 1 ]; then
|
|
./sys/build-harden.sh $@ && ${SUDO} ${MAKE} symstall
|
|
else
|
|
./sys/build.sh $@ && ${SUDO} ${MAKE} symstall
|
|
fi
|