mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
Tools: jsbsim script should not re-install jsbsim if it's already installed
It's called unconditionally from other script/s that may be run repeatedly
This commit is contained in:
parent
4ba5a368ff
commit
f5b2d5ca66
@ -2,9 +2,20 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
|
echo "---------- $0 start ----------"
|
||||||
|
|
||||||
rm -rf jsbsim
|
# don't waste time rebuilding jsbsim if we already have a working copy of it
|
||||||
git clone https://github.com/tridge/jsbsim.git
|
# this can save ~10 or minutes on some hardware
|
||||||
cd jsbsim
|
JSBBINARY=~/jsbsim/src/JSBSim
|
||||||
./autogen.sh
|
if [ -f $JSBBINARY ]; then
|
||||||
make -j2
|
echo "$JSBBINARY exists, skipping build. (to force rebuild then remove this file and re-run) "
|
||||||
|
else
|
||||||
|
echo "$JSBBINARY does not exist, building it in your home folder:"
|
||||||
|
cd ~
|
||||||
|
rm -rf jsbsim
|
||||||
|
git clone https://github.com/tridge/jsbsim.git
|
||||||
|
cd jsbsim
|
||||||
|
./autogen.sh
|
||||||
|
make -j2
|
||||||
|
fi
|
||||||
|
echo "---------- $0 end ----------"
|
||||||
|
Loading…
Reference in New Issue
Block a user