2016-06-22 15:59:48 +00:00
|
|
|
#!/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
|
2016-10-12 09:06:00 +00:00
|
|
|
cmake "$@" ..
|
2016-06-30 14:51:55 +00:00
|
|
|
|
2016-10-03 18:52:38 +00:00
|
|
|
# minimal config to find plugins
|
2016-06-30 14:51:55 +00:00
|
|
|
cat <<EOF > ceph.conf
|
|
|
|
plugin dir = lib
|
|
|
|
erasure code dir = lib
|
|
|
|
EOF
|
|
|
|
|
2016-10-03 18:52:38 +00:00
|
|
|
# give vstart a (hopefully) unique mon port to start with
|
|
|
|
echo $(( RANDOM % 1000 + 40000 )) > .ceph_port
|
|
|
|
|
2016-06-30 14:51:55 +00:00
|
|
|
echo done.
|