Skip to content

Instantly share code, notes, and snippets.

@fishkingsin
Created December 6, 2012 03:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fishkingsin/4221672 to your computer and use it in GitHub Desktop.
Save fishkingsin/4221672 to your computer and use it in GitHub Desktop.
build All RapsPi openframeworks Examples
#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