aboutsummaryrefslogtreecommitdiff
path: root/tools/mhmake/genkdev4.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tools/mhmake/genkdev4.sh')
-rwxr-xr-xtools/mhmake/genkdev4.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/mhmake/genkdev4.sh b/tools/mhmake/genkdev4.sh
index 1acfe13b4..c3b1cbaa5 100755
--- a/tools/mhmake/genkdev4.sh
+++ b/tools/mhmake/genkdev4.sh
@@ -1,12 +1,12 @@
-mkdir build
+[ ! -d build ] && mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Release ..
cd ..
-mkdir build.dbg
+[ ! -d build.dbg ] && mkdir build.dbg
cd build.dbg
cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Debug ..
cd ..
-mkdir .kdev4
+[ ! -d .kdev4 ] && mkdir .kdev4
echo [CMake] > .kdev4/mhmake.kdev4
echo BuildDirs[\$e]=$PWD/build,$PWD/build.dbg >> .kdev4/mhmake.kdev4