mirror of
https://github.com/ceph/ceph
synced 2024-12-12 06:28:31 +00:00
7e6a57bd26
Signed-off-by: Sage Weil <sage@redhat.com>
29 lines
527 B
Bash
Executable File
29 lines
527 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
|
|
|
|
if type ccache > /dev/null 2>&1 ; then
|
|
echo "enabling ccache"
|
|
ARGS="$ARGS -DWITH_CCACHE=ON"
|
|
fi
|
|
|
|
mkdir build
|
|
cd build
|
|
if type cmake3 > /dev/null 2>&1 ; then
|
|
CMAKE=cmake3
|
|
else
|
|
CMAKE=cmake
|
|
fi
|
|
${CMAKE} -DCMAKE_BUILD_TYPE=Debug $ARGS "$@" .. || exit 1
|
|
|
|
# minimal config to find plugins
|
|
cat <<EOF > ceph.conf
|
|
plugin dir = lib
|
|
erasure code dir = lib
|
|
EOF
|
|
|
|
echo done.
|