2011-11-25 18:57:46 -04:00
|
|
|
#!/bin/bash
|
|
|
|
# useful script to test all the different build types that we support.
|
|
|
|
# This helps when doing large merges
|
|
|
|
# Andrew Tridgell, November 2011
|
|
|
|
|
2013-09-03 23:03:54 -03:00
|
|
|
. config.mk
|
|
|
|
|
2011-11-25 18:57:46 -04:00
|
|
|
set -e
|
|
|
|
set -x
|
|
|
|
|
2016-01-16 01:04:19 -04:00
|
|
|
export BUILDROOT="/tmp/all.build"
|
|
|
|
rm -rf $BUILDROOT
|
|
|
|
|
2017-05-08 23:07:03 -03:00
|
|
|
BOARDS="sitl linux"
|
2011-11-25 18:57:46 -04:00
|
|
|
|
2017-05-08 23:07:03 -03:00
|
|
|
for b in $BOARDS; do
|
|
|
|
echo "Testing $b build"
|
|
|
|
./waf configure --board $b
|
|
|
|
./waf clean
|
|
|
|
./waf
|
2011-11-25 18:57:46 -04:00
|
|
|
done
|
2017-02-24 19:25:50 -04:00
|
|
|
|
2017-05-08 23:07:03 -03:00
|
|
|
echo "Building Replay"
|
2014-03-19 07:04:16 -03:00
|
|
|
pushd Tools/Replay
|
|
|
|
make clean
|
2016-10-31 19:33:02 -03:00
|
|
|
make
|
2014-03-19 07:04:16 -03:00
|
|
|
popd
|
|
|
|
|
2017-05-08 23:07:03 -03:00
|
|
|
./Tools/scripts/build_all_px4.sh
|
2013-02-11 17:35:39 -04:00
|
|
|
|
2014-04-08 08:27:53 -03:00
|
|
|
test -n "$VRBRAIN_ROOT" && test -d "$VRBRAIN_ROOT" && {
|
|
|
|
./Tools/scripts/build_all_vrbrain.sh
|
|
|
|
}
|
|
|
|
|
2012-02-19 18:16:57 -04:00
|
|
|
exit 0
|