--- /dev/null
+#!/bin/bash
+
+if [ -n "$CEPH_BUILD_DIR" ] && [ -n "$CEPH_ROOT" ] && [ -n "$CEPH_BIN" ] && [ -n "$CEPH_LIB" ]; then
+ echo "Enivronment Variables Already Set"
+elif [ -e CMakeCache.txt ]; then
+ echo "Environment Variables Not All Set, Detected Build System CMake"
+ echo "Setting Environment Variables"
+ export CEPH_ROOT=`grep ceph_SOURCE_DIR CMakeCache.txt | cut -d "=" -f 2`
+ export CEPH_BUILD_DIR=`pwd`
+ export CEPH_BIN=$CEPH_BUILD_DIR/bin
+ export CEPH_LIB=$CEPH_BUILD_DIR/lib
+ export PATH=$CEPH_BIN:$PATH
+ export LD_LIBRARY_PATH=$CEPH_LIB
+else
+ echo "Please execute this command out of the proper directory"
+ exit 1
+fi
+
+