2009-12-16 19:14:06 +00:00
|
|
|
#!/bin/sh
|
2010-01-04 12:11:48 +00:00
|
|
|
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}
|