2011-09-10 00:19:06 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2014-11-19 21:44:13 +00:00
|
|
|
[ -z "${PREFIX}" ] && PREFIX=/usr
|
|
|
|
|
2011-09-10 00:19:06 +00:00
|
|
|
# find root
|
2015-06-17 02:19:48 +00:00
|
|
|
cd "$(dirname "$PWD/$0")"
|
2014-11-20 09:06:09 +00:00
|
|
|
. ./CONFIG
|
2011-09-10 00:19:06 +00:00
|
|
|
|
2014-05-08 22:55:51 +00:00
|
|
|
mkdir _work
|
|
|
|
cd _work || exit 1
|
2011-09-10 00:19:06 +00:00
|
|
|
if [ -d valabind ]; then
|
|
|
|
cd valabind
|
2012-08-09 11:15:25 +00:00
|
|
|
git pull
|
2011-09-10 00:19:06 +00:00
|
|
|
else
|
2012-08-09 11:15:25 +00:00
|
|
|
git clone git://github.com/radare/valabind
|
2011-09-10 00:19:06 +00:00
|
|
|
cd valabind
|
|
|
|
fi
|
|
|
|
|
2011-10-04 08:10:00 +00:00
|
|
|
make clean
|
2011-09-10 00:19:06 +00:00
|
|
|
make
|
2014-11-19 21:44:13 +00:00
|
|
|
sudo make install PREFIX=${PREFIX}
|