2014-07-31 22:19:57 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# find root
|
|
|
|
cd `dirname $PWD/$0`
|
|
|
|
./clone-r2-bindings.sh
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
[ -z "${PREFIX}" ] && PREFIX=/usr
|
|
|
|
ID=`id -u`
|
|
|
|
[ -n "${NOSUDO}" ] && SUDO=
|
|
|
|
|
|
|
|
export DESTDIR
|
|
|
|
|
2014-08-06 14:38:25 +00:00
|
|
|
cd radare2-bindings
|
|
|
|
./configure --prefix=/usr --enable=duktape
|
|
|
|
cd libr/lang/p
|
2014-07-31 22:19:57 +00:00
|
|
|
make clean
|
|
|
|
make
|
|
|
|
rm ~/.config/radare2/plugins/lang_duktape.*
|
2014-08-01 14:27:02 +00:00
|
|
|
if [ "$1" != '--no-install' ]; then
|
|
|
|
if [ "$ID" = 0 ]; then
|
|
|
|
${SUDO} make install DESTDIR=${DESTDIR}
|
|
|
|
else
|
|
|
|
make install-home
|
|
|
|
fi
|
2014-07-31 22:19:57 +00:00
|
|
|
fi
|