2011-02-04 02:55:46 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
export LC_ALL=C
|
2012-04-22 17:39:18 -03:00
|
|
|
cd ../../examples
|
2011-02-04 02:55:46 +01:00
|
|
|
|
2012-04-22 17:39:18 -03:00
|
|
|
for category in $( ls . )
|
2011-02-04 02:55:46 +01:00
|
|
|
do
|
2022-11-13 00:47:52 +01:00
|
|
|
if [ ! -d "$category" -o "$category" = "android" -o "$category" = "ios" -o "$category" = "gles" ]; then
|
2012-04-22 17:39:18 -03:00
|
|
|
continue
|
|
|
|
|
fi
|
|
|
|
|
cd $category
|
|
|
|
|
for example in $( ls . )
|
|
|
|
|
do
|
2022-11-13 00:47:52 +01:00
|
|
|
if [[ "$example" == osx* ]] || [[ "$example" != *Example ]]
|
2013-01-24 16:45:20 +01:00
|
|
|
then
|
|
|
|
|
continue
|
|
|
|
|
fi
|
2012-04-22 17:39:18 -03:00
|
|
|
echo "-----------------------------------------------------------------"
|
|
|
|
|
echo "building " + $example
|
|
|
|
|
cd $example
|
|
|
|
|
make Debug
|
|
|
|
|
ret=$?
|
|
|
|
|
if [ $ret -ne 0 ]; then
|
|
|
|
|
echo error compiling $example
|
|
|
|
|
exit
|
|
|
|
|
fi
|
|
|
|
|
make Release
|
|
|
|
|
ret=$?
|
|
|
|
|
if [ $ret -ne 0 ]; then
|
|
|
|
|
echo error compiling $example
|
|
|
|
|
exit
|
|
|
|
|
fi
|
|
|
|
|
cd bin
|
|
|
|
|
./$example
|
|
|
|
|
cd ../../
|
|
|
|
|
echo "-----------------------------------------------------------------"
|
|
|
|
|
echo ""
|
|
|
|
|
done
|
|
|
|
|
cd ..
|
2011-02-04 02:55:46 +01:00
|
|
|
done
|