From 889da98ca65d9b89e7fa50d43be8e8567519d507 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 19 Jan 2016 14:18:16 +1100 Subject: [PATCH] scripts: cope with older releases that don't support FMUv4 --- Tools/scripts/build_binaries.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tools/scripts/build_binaries.sh b/Tools/scripts/build_binaries.sh index 653bea4821..8cc1906b24 100755 --- a/Tools/scripts/build_binaries.sh +++ b/Tools/scripts/build_binaries.sh @@ -192,7 +192,7 @@ build_arduplane() { } copyit ArduPlane-v1.px4 $ddir $tag && copyit ArduPlane-v2.px4 $ddir $tag && - copyit ArduPlane-v4.px4 $ddir $tag + test ! -f ArduPlane-v4.px4 || copyit ArduPlane-v4.px4 $ddir $tag if [ "$tag" = "latest" ]; then copyit px4io-v1.bin $binaries/PX4IO/$hdate/PX4IO $tag copyit px4io-v1.elf $binaries/PX4IO/$hdate/PX4IO $tag @@ -249,7 +249,7 @@ build_arducopter() { } copyit ArduCopter-v1.px4 $ddir $tag && copyit ArduCopter-v2.px4 $ddir $tag && - copyit ArduCopter-v4.px4 $ddir $tag + test ! -f ArduCopter-v4.px4 || copyit ArduCopter-v4.px4 $ddir $tag done checkout ArduCopter "latest" "" "" popd @@ -292,7 +292,7 @@ build_rover() { } copyit APMrover2-v1.px4 $binaries/Rover/$hdate/PX4 $tag && copyit APMrover2-v2.px4 $binaries/Rover/$hdate/PX4 $tag && - copyit APMrover2-v4.px4 $binaries/Rover/$hdate/PX4 $tag + test ! -f APMrover2-v4.px4 || copyit APMrover2-v4.px4 $binaries/Rover/$hdate/PX4 $tag } checkout APMrover2 "latest" "" "" popd @@ -335,7 +335,7 @@ build_antennatracker() { } copyit AntennaTracker-v1.px4 $binaries/AntennaTracker/$hdate/PX4 $tag && copyit AntennaTracker-v2.px4 $binaries/AntennaTracker/$hdate/PX4 $tag && - copyit AntennaTracker-v4.px4 $binaries/AntennaTracker/$hdate/PX4 $tag + test ! -f AntennaTracker-v4.px4 || copyit AntennaTracker-v4.px4 $binaries/AntennaTracker/$hdate/PX4 $tag } checkout AntennaTracker "latest" "" "" popd