radare2/swig/do-swig.sh
pancake ba0fcc1d03 * Some more work on valaswig integratio
* Add perl backend bindings for swig/
* Add minimal (one test) test suite for py/pl

--HG--
rename : swig/t.py => swig/test/python/num.py
2010-01-04 13:11:48 +01:00

11 lines
217 B
Bash
Executable File

#!/bin/sh
LNG=$1
MOD=$2
if [ -z "${MOD}" ]; then
echo "Usage: ./libr-swig.sh [python] [r_foo]"
exit 1
fi
mkdir -p ${LNG}
cd ${LNG}
valaswig-cc ${LNG} ${MOD} -I../../libr/include ../../libr/vapi/${MOD}.vapi -l${MOD}