]> git.proxmox.com Git - ceph.git/blob - ceph/do_cmake.sh
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / do_cmake.sh
1 #!/bin/sh -x
2 git submodule update --init --recursive
3 if test -e build; then
4 echo 'build dir already exists; rm -rf build and re-run'
5 exit 1
6 fi
7 mkdir build
8 cd build
9 cmake -DBOOST_J=$(nproc) "$@" ..
10
11 # minimal config to find plugins
12 cat <<EOF > ceph.conf
13 plugin dir = lib
14 erasure code dir = lib
15 EOF
16
17 # give vstart a (hopefully) unique mon port to start with
18 echo $(( RANDOM % 1000 + 40000 )) > .ceph_port
19
20 echo done.