radare2/sys/clone-r2-bindings.sh
2013-12-20 02:10:36 +01:00

14 lines
223 B
Bash
Executable File

#!/bin/sh
cd `dirname $PWD/$0`/..
if [ -d r2-bindings ]; then
cd r2-bindings
git pull
else
URL=`doc/repo BINDINGS`
if [ -z "$URL" ]; then
echo "No BINDINGS URL in doc/repo"
exit 1
fi
git clone $URL r2-bindings
fi