mirror of
https://github.com/ceph/ceph
synced 2024-12-25 04:43:17 +00:00
f251b07e5d
Signed-off-by: Sage Weil <sage@redhat.com>
28 lines
521 B
Bash
Executable File
28 lines
521 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
|
|
|
|
ARGS=""
|
|
if which ccache ; then
|
|
echo "enabling ccache"
|
|
ARGS+="-DWITH_CCACHE=ON"
|
|
fi
|
|
|
|
mkdir build
|
|
cd build
|
|
cmake -DBOOST_J=$(nproc) $ARGS "$@" ..
|
|
|
|
# minimal config to find plugins
|
|
cat <<EOF > ceph.conf
|
|
plugin dir = lib
|
|
erasure code dir = lib
|
|
EOF
|
|
|
|
# give vstart a (hopefully) unique mon port to start with
|
|
echo $(( RANDOM % 1000 + 40000 )) > .ceph_port
|
|
|
|
echo done.
|