From 25255d79e81384a0fb92f8303490cd091f8e5b26 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 30 Aug 2013 17:59:32 +1000 Subject: [PATCH] PX4: cope with relative path for PX4_ROOT in build_binaries.sh --- Tools/scripts/build_binaries.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tools/scripts/build_binaries.sh b/Tools/scripts/build_binaries.sh index f49fb75fa5..2d4c59581c 100755 --- a/Tools/scripts/build_binaries.sh +++ b/Tools/scripts/build_binaries.sh @@ -98,7 +98,7 @@ build_arduplane() { copyit $TMPDIR/ArduPlane.build/ArduPlane.hex $ddir $tag touch $binaries/Plane/$tag done - test -n "$PX4_ROOT" && test -d "$PX4_ROOT" && { + test -n "$PX4_ROOT" && { echo "Building ArduPlane PX4 binaries" ddir=$binaries/Plane/$hdate/PX4 skip_build $tag $ddir || { @@ -129,7 +129,7 @@ build_arducopter() { touch $binaries/Copter/$tag done done - test -n "$PX4_ROOT" && test -d "$PX4_ROOT" && { + test -n "$PX4_ROOT" && { for f in quad tri hexa y6 octa octa-quad heli quad-hil heli-hil; do echo "Building ArduCopter PX4-$f binaries" ddir="$binaries/Copter/$hdate/PX4-$f" @@ -159,7 +159,7 @@ build_rover() { copyit $TMPDIR/APMrover2.build/APMrover2.hex $ddir $tag touch $binaries/Rover/$tag done - test -n "$PX4_ROOT" && test -d "$PX4_ROOT" && { + test -n "$PX4_ROOT" && { echo "Building APMrover2 PX4 binaries" ddir=$binaries/Rover/$hdate/PX4 skip_build $tag $ddir || {