mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-01 17:40:34 +00:00
23 lines
390 B
Bash
Executable File
23 lines
390 B
Bash
Executable File
#!/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
|
|
cd `dirname $PWD/$0` ; cd ..
|
|
if [ -d .hg ]; then
|
|
echo hg up -C -r "${REV}"
|
|
hg up -C -r "${REV}"
|
|
elif [ -d .git ]; then
|
|
echo git checkout "${REV}"
|
|
git checkout "${REV}"
|
|
fi
|
|
|
|
./sys/build.sh && sudo ${MAKE} symstall
|