]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
do_cmake.sh: Add CEPH_GIT_DIR 30863/head
authorMatthew Oliver <moliver@suse.com>
Fri, 25 Oct 2019 05:20:22 +0000 (05:20 +0000)
committerMatthew Oliver <moliver@suse.com>
Mon, 4 Nov 2019 00:30:09 +0000 (00:30 +0000)
commiteb33b30d3db3191dcca67136653db32f2fed3aff
treece07c0203b57970466d4bfd573918f63783e12dd
parent324f8781ca4cd63a1eb46cd525e7fec4639e1e78
do_cmake.sh: Add CEPH_GIT_DIR

This patch adds a new env variables that users can set to define the
location of the checked out ceph git repo.

The documentation mentions having to go edit the script directly to
point to the ceph git directory if the build dir isn't in the
top directory of the checked out git repo. This patch changes the '..'
into an env variable, CEPH_GIT_DIR, that defaults to '..'. To make it
easy to script and change.

This allows someone to do things like:

 export CEPH_GIT_DIR=~/git/ceph
 ./do_cmake.sh

or

 CEPH_GIT_DIR=~/git/ceph ./do_cmake.sh

Which is much better then editing the script directly.
The README.md has been modified to mention this variable and also
includes a drive by to mention `make -j` for new contributors to
build ceph quicker.

Signed-off-by: Matthew Oliver <moliver@suse.com>
README.md
do_cmake.sh