radare2/swig/check-langs.sh
2010-03-04 01:55:15 +01:00

19 lines
323 B
Bash
Executable File

#!/bin/sh
SUP_LANGS=""
LANGS="python perl ruby lua"
for a in ${LANGS}; do
printf "Checking $a support for valaswig... "
valaswig-cc --test $a
if [ $? = 0 ]; then
echo ok
SUP_LANGS="$a ${SUP_LANGS}"
else
echo fail
fi
done
:> supported.langs
for a in ${SUP_LANGS}; do
echo $a >> supported.langs
done