Tools: allow targets to be specified in build_examples.sh

This commit is contained in:
Andrew Tridgell 2012-12-19 11:01:14 +11:00
parent 2e8e84ba8b
commit 306dc926ff
1 changed files with 7 additions and 2 deletions

View File

@ -6,6 +6,12 @@
set -e
set -x
targets="clean all"
[ $# -gt 0 ] && {
targets="$*"
}
export PATH=/usr/lib/ccache:$PATH
TESTS=$(find libraries -name 'Makefile' | xargs -i dirname '{}')
@ -16,8 +22,7 @@ for b in $TESTS; do
if [ -r nobuild.txt ]; then
echo "Skipping build of $b"
else
make clean
make
make $targets
fi
popd
done