From 495dfc30e66eaa94aca25ab8d067dbdf584c95be Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 24 Nov 2012 21:06:52 +1100 Subject: [PATCH] scripts: added build_example.sh script used to test the build of all our example code --- Tools/scripts/build_examples.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 Tools/scripts/build_examples.sh diff --git a/Tools/scripts/build_examples.sh b/Tools/scripts/build_examples.sh new file mode 100755 index 0000000000..b69a7b2502 --- /dev/null +++ b/Tools/scripts/build_examples.sh @@ -0,0 +1,26 @@ +#!/bin/bash +# useful script to test the build of all example code +# This helps when doing large merges +# Andrew Tridgell, November 2012 + +set -e +set -x + +export PATH=/usr/lib/ccache:$PATH + +TESTS=$(find libraries -name 'Makefile' | xargs -i dirname '{}') + +for b in $TESTS; do + echo "TESTING $b" + pushd $b + if [ -r nobuild.txt ]; then + echo "Skipping build of $b" + else + make clean + make + fi + popd +done + +echo "All examples built OK" +exit 0