Browse Source

Tools: allow targets to be specified in build_examples.sh

mission-4.1.18
Andrew Tridgell 12 years ago
parent
commit
306dc926ff
  1. 9
      Tools/scripts/build_examples.sh

9
Tools/scripts/build_examples.sh

@ -6,6 +6,12 @@ @@ -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 @@ -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

Loading…
Cancel
Save