scripts: make build_examples.sh much faster

This commit is contained in:
Andrew Tridgell 2016-01-15 19:09:21 +11:00
parent 51fd0b3d55
commit d65ace2e34
1 changed files with 4 additions and 1 deletions

View File

@ -6,7 +6,7 @@
set -e
set -x
targets="clean navio"
targets="navio"
[ $# -gt 0 ] && {
targets="$*"
@ -16,6 +16,9 @@ export PATH=/usr/lib/ccache:$PATH
TESTS=$(find libraries -name 'Makefile' | grep -v FLYMAPLE | xargs -i dirname '{}')
export BUILDROOT="/tmp/examples.build"
rm -rf $BUILDROOT
for b in $TESTS; do
echo "TESTING $b"
pushd $b