karolherbst/Desurium — Issue #9: don't mkdir build if it already exists
Author: matthiaskrgr
Created: 2012-03-06 13:04:05+00:00
State: open

unfortunately I didn't seem to be able to fork your fork so I'll just drop the patch here:

diff --git a/build_cmake.sh b/build_cmake.sh
index 2b250d8..6bfc6cb 100755
--- a/build_cmake.sh
+++ b/build_cmake.sh
@@ -1,5 +1,7 @@
#!/bin/sh
-mkdir build
+if [ ! -d "build" ] ; then
+ mkdir build
+fi
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=../install
make install $*

Regards, Matthias