summaryrefslogtreecommitdiff
path: root/src/navigation/build.sh
diff options
context:
space:
mode:
authorasanoaozora <fifitaneki@hotmail.com>2016-10-06 17:16:03 +0200
committerasanoaozora <fifitaneki@hotmail.com>2016-10-06 17:16:03 +0200
commit35f7d96f2343a230d4844b9fb6d3a0e503d451f1 (patch)
treec4284b111e7f6e2acda8cd9f3d5f5b089b0f4f57 /src/navigation/build.sh
parent3e116799398eda2f61c64059b34cbb01c505a1e4 (diff)
downloadpoi-service-35f7d96f2343a230d4844b9fb6d3a0e503d451f1.tar.gz
fix pb of duplicate enum in guidance
Diffstat (limited to 'src/navigation/build.sh')
-rwxr-xr-xsrc/navigation/build.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/navigation/build.sh b/src/navigation/build.sh
index c1d36e4..906bc2c 100755
--- a/src/navigation/build.sh
+++ b/src/navigation/build.sh
@@ -60,10 +60,18 @@ fi
if [ "$clean" = 1 ]
then
- echo 'clean up the build folder'
if [ -d "./build" ]
then
- find ./build ! -name '*.cbp' -type f -exec rm -f {} +
+ if [ "$navit" = 1 ]
+ then
+ echo 'clean up the build folder and regenerate all the stuff'
+ find ./build ! -name '*.cbp' -type f -exec rm -f {} +
+ else
+ echo 'clean up the build folder and regenerate all the stuff except navit '
+ rm ./build/CMakeCache.txt
+ rm ./build/cmake_install.cmake
+ rm ./build/Makefile
+ fi
fi
fi