3 if [ -n "$CEPH_BUILD_DIR" ] && [ -n "$CEPH_ROOT" ] && [ -n "$CEPH_BIN" ] && [ -n "$CEPH_LIB" ]; then
4 echo "Enivronment Variables Already Set"
5 elif [ -e CMakeCache.txt ]; then
6 echo "Environment Variables Not All Set, Detected Build System CMake"
7 echo "Setting Environment Variables"
8 export CEPH_ROOT=`grep ceph_SOURCE_DIR CMakeCache.txt | cut -d "=" -f 2`
9 export CEPH_BUILD_DIR=`pwd`
10 export CEPH_BIN=$CEPH_BUILD_DIR/bin
11 export CEPH_LIB=$CEPH_BUILD_DIR/lib
12 export PATH=$CEPH_BIN:$PATH
13 export LD_LIBRARY_PATH=$CEPH_LIB
15 echo "Please execute this command out of the proper directory"