ceph/do_cmake.sh
Sage Weil 6732ef05ac do_cmake.sh: create initial ceph.conf setting dirs
This is enough for unit tests to run.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-06-30 11:06:21 -04:00

17 lines
263 B
Bash
Executable File

#!/bin/sh -x
git submodule update --init --recursive
if test -e build; then
echo 'build dir already exists; rm -rf build and re-run'
exit 1
fi
mkdir build
cd build
cmake $@ ..
cat <<EOF > ceph.conf
plugin dir = lib
erasure code dir = lib
EOF
echo done.