diff options
author | philippe colliot <fifitaneki@hotmail.com> | 2016-02-10 15:09:37 +0100 |
---|---|---|
committer | philippe colliot <fifitaneki@hotmail.com> | 2016-02-10 15:09:37 +0100 |
commit | 777e81fc45a834d3b0c07af66486ad70d815f7b6 (patch) | |
tree | f6f7f8859e5212b93ff02612cb4f11be5044b395 | |
parent | 578deac8bdc971b514aa3557782514fb6f10cc39 (diff) | |
download | poi-service-777e81fc45a834d3b0c07af66486ad70d815f7b6.tar.gz |
fix bug in rebuild_all scripts
-rwxr-xr-x | src/navigation/rebuild_all.sh | 5 | ||||
-rwxr-xr-x | src/poi-service/rebuild_all.sh | 7 | ||||
-rwxr-xr-x | test/poi-service/rebuild_all.sh | 7 |
3 files changed, 14 insertions, 5 deletions
diff --git a/src/navigation/rebuild_all.sh b/src/navigation/rebuild_all.sh index 02b58db..a1c5bde 100755 --- a/src/navigation/rebuild_all.sh +++ b/src/navigation/rebuild_all.sh @@ -1,7 +1,10 @@ #!/bin/bash echo 'clean up the build folder' -find ./build ! -name '*.cbp' -type f -exec rm -f {} + +if [ -d "./build" ] +then + find ./build ! -name '*.cbp' -type f -exec rm -f {} + +fi mkdir -p build cd build diff --git a/src/poi-service/rebuild_all.sh b/src/poi-service/rebuild_all.sh index 1d19abb..688f9af 100755 --- a/src/poi-service/rebuild_all.sh +++ b/src/poi-service/rebuild_all.sh @@ -25,7 +25,7 @@ do done set -e -if [ $franca="ON" ] +if [ "$franca" = "ON" ] then if [ ! $COMMONAPI_TOOL_DIR ] then @@ -52,7 +52,10 @@ then fi echo 'clean up the build folder' -find ./build ! -name '*.cbp' -type f -exec rm -f {} + +if [ -d "./build" ] +then + find ./build ! -name '*.cbp' -type f -exec rm -f {} + +fi mkdir -p build cd build diff --git a/test/poi-service/rebuild_all.sh b/test/poi-service/rebuild_all.sh index 1a32185..fc02261 100755 --- a/test/poi-service/rebuild_all.sh +++ b/test/poi-service/rebuild_all.sh @@ -25,7 +25,7 @@ do done set -e -if [ $franca="ON" ] +if [ "$franca" = "ON" ] then if [ ! $COMMONAPI_TOOL_DIR ] then @@ -60,7 +60,10 @@ cd ../../test/poi-service echo 'build the poi client' echo 'clean up the build folder' -find ./build ! -name '*.cbp' -type f -exec rm -f {} + +if [ -d "./build" ] +then + find ./build ! -name '*.cbp' -type f -exec rm -f {} + +fi mkdir -p build |