]> git.proxmox.com Git - ceph.git/blob - ceph/src/test/detect-build-env-vars.sh
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / test / detect-build-env-vars.sh
1 #!/usr/bin/env bash
2
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
14 else
15 echo "Please execute this command out of the proper directory"
16 exit 1
17 fi
18
19