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