scripts: cope with older releases that don't support FMUv4

This commit is contained in:
Andrew Tridgell 2016-01-19 14:18:16 +11:00
parent d7f50ab668
commit 889da98ca6

View File

@ -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