summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphilippe colliot <fifitaneki@hotmail.com>2016-02-10 15:09:37 +0100
committerphilippe colliot <fifitaneki@hotmail.com>2016-02-10 15:09:37 +0100
commit777e81fc45a834d3b0c07af66486ad70d815f7b6 (patch)
treef6f7f8859e5212b93ff02612cb4f11be5044b395
parent578deac8bdc971b514aa3557782514fb6f10cc39 (diff)
downloadpoi-service-777e81fc45a834d3b0c07af66486ad70d815f7b6.tar.gz
fix bug in rebuild_all scripts
-rwxr-xr-xsrc/navigation/rebuild_all.sh5
-rwxr-xr-xsrc/poi-service/rebuild_all.sh7
-rwxr-xr-xtest/poi-service/rebuild_all.sh7
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