]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mrun, mstart.sh, mstop.sh: search for cmake build directory 10097/head
authorYehuda Sadeh <yehuda@redhat.com>
Fri, 1 Jul 2016 18:31:04 +0000 (11:31 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 1 Jul 2016 18:32:41 +0000 (11:32 -0700)
Search for the default cmake build directory, use it if found

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/mrun
src/mstart.sh
src/mstop.sh

index 407f360a0cc60d2f9fde4ddfb938b8e7a13ec1cc..cdf34a83b63a651f651698455190ffcf4cbee5ef 100755 (executable)
--- a/src/mrun
+++ b/src/mrun
@@ -11,6 +11,10 @@ CEPH_CONF_PATH=$root/run/$run_name
 if [ -e CMakeCache.txt ]; then
     CEPH_BIN=$PWD/bin
     CEPH_CONF_PATH=$PWD/run/$run_name
+elif [ -e $root/../build/CMakeCache.txt ]; then
+    cd $root/../build
+    CEPH_BIN=$PWD/bin
+    CEPH_CONF_PATH=$PWD/run/$run_name
 fi
 
 shift 2
index 34e6cf7ea6c3be2c5d2686e0985c816cc8c6c648..bbc8ecc5fe6a651ca38d4f236b11d59376c752e2 100755 (executable)
@@ -20,6 +20,9 @@ root_path=`(cd $root_path; pwd)`
 
 if [ -e CMakeCache.txt ]; then
     root_path=$PWD
+elif [ -e $root_path/../build/CMakeCache.txt ]; then
+    cd $root_path/../build
+    root_path=$PWD
 fi
 RUN_ROOT_PATH=${root_path}/run
 CLUSTERS_LIST=$RUN_ROOT_PATH/.clusters.list
index 0f85482f68471f0108934218726606ccfe475cdf..6aae78873615104ce8f9b06976dcf50880edff0b 100755 (executable)
@@ -6,6 +6,8 @@ script_root=`dirname $0`
 
 if [ -e CMakeCache.txt ]; then
     script_root=$PWD
+elif [ -e $script_root/../build/CMakeCache.txt ]; then
+    script_root=`(cd $script_root/../build; pwd)`
 fi
 
 [ "$#" -lt 1 ] && echo "usage: $0 <name> [entity [id]]" && exit 1