mirror of
https://github.com/ceph/ceph
synced 2024-12-26 13:33:57 +00:00
ea708e749b
And that requires that the options need to be passed on completely to the cmake program as well. Thus adding """'s around the option argument with do_cmake.sh as well Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
21 lines
404 B
Bash
Executable File
21 lines
404 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 "$@" ..
|
|
|
|
# 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.
|