]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/mstart.sh
import 15.2.0 Octopus source
[ceph.git] / ceph / src / mstart.sh
index 327591751849c989b52eef000433de448683ea1c..4bf3bde4b69c76b990b20695fff29cbbd232eb5f 100755 (executable)
@@ -18,10 +18,12 @@ vstart_path=`dirname $0`
 root_path=`dirname $0`
 root_path=`(cd $root_path; pwd)`
 
+[ -z "$BUILD_DIR" ] && BUILD_DIR=build
+
 if [ -e CMakeCache.txt ]; then
     root_path=$PWD
-elif [ -e $root_path/../build/CMakeCache.txt ]; then
-    cd $root_path/../build
+elif [ -e $root_path/../${BUILD_DIR}/CMakeCache.txt ]; then
+    cd $root_path/../${BUILD_DIR}
     root_path=$PWD
 fi
 RUN_ROOT_PATH=${root_path}/run