radare2/swig/do-swig.sh

11 lines
217 B
Bash
Raw Normal View History

#!/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}