Created
December 6, 2012 03:58
-
-
Save fishkingsin/4221672 to your computer and use it in GitHub Desktop.
build All RapsPi openframeworks Examples
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#fork from https://gist.github.com/4159230 jvcleave distcc buildscript | |
#openframework user examples build script | |
#put the script at $(OF_ROOT)/scripts/linux/debian_armv6l/buildAllExample.sh | |
cd ../../../examples | |
for category in $(ls -1d *) | |
do | |
if [ $category != "addons" ] && [ $category != "ios" ] && [ $category != "android" ]; then | |
echo "CHANGED TO CATEGORY >"+$category | |
cd $category | |
for j in $(ls -1d *) | |
do | |
echo ">>$j" | |
cd $j | |
cp ../../../apps/devApps/raspberrypi_hello_world/config.make config.make | |
cp ../../../apps/devApps/raspberrypi_hello_world/makefile makefile | |
cp ../../../apps/devApps/raspberrypi_hello_world/src/main.cpp src/main.cpp | |
make clean | |
make -s -j 16 | |
ret=$? | |
if [ $ret -ne 0 ]; | |
then | |
echo "error compiling: " + $example | |
else | |
echo "successfully compiled :" + $example | |
fi | |
cd ../ | |
done | |
cd ../ | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment