From a963a0d245b83180c13b30a8e58ccedc2acb1532 Mon Sep 17 00:00:00 2001 From: Rajat Singhal Date: Sun, 21 Apr 2019 00:47:06 +0530 Subject: [PATCH] Tools: scripts: Suggest exporting JSBSim path after building Tools: scripts: Remove debug output in build-jsbsim.sh Tools: scripts: Restore debug output in build-jsbsim.sh --- Tools/scripts/build-jsbsim.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Tools/scripts/build-jsbsim.sh b/Tools/scripts/build-jsbsim.sh index eaa6ed7aed..a6ba075a1f 100755 --- a/Tools/scripts/build-jsbsim.sh +++ b/Tools/scripts/build-jsbsim.sh @@ -20,4 +20,10 @@ else cmake -DCMAKE_CXX_FLAGS_RELEASE="-O3 -march=native -mtune=native" -DCMAKE_C_FLAGS_RELEASE="-O3 -march=native -mtune=native" -DCMAKE_BUILD_TYPE=Release .. make -j2 fi + +if [[ ! -n $(echo $PATH | grep jsbsim) ]]; then + echo "Add the JSBSim executable to your PATH using - export PATH=\$PATH:~/jsbsim/build/src" + echo "Add the above command to ~/.bashrc to automatically set the path everytime a new terminal is launched" +fi + echo "---------- $0 end ----------"