radare2/sys/install-rev.sh

20 lines
324 B
Bash
Raw Normal View History

#!/bin/sh
if [ -z "$1" ]; then
echo "Usage: install-rev [revision-number]"
exit 1
fi
REV="$1"
MAKE=make
gmake --help >/dev/null 2>&1
[ $? = 0 ] && MAKE=gmake
# find root
2015-06-17 03:47:36 +00:00
cd "$(dirname "$PWD/$0")" ; cd ..
2014-05-07 23:08:52 +00:00
if [ -d .git ]; then
2012-08-09 11:15:25 +00:00
echo git checkout "${REV}"
git checkout "${REV}"
fi
./sys/build.sh && sudo ${MAKE} symstall