radare2/swig/check-langs.sh
2010-01-18 20:38:30 +01:00

19 lines
319 B
Bash
Executable File

#!/bin/sh
SUP_LANGS=""
LANGS="python perl ruby"
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