do_cmake.sh: simple cmake helper

Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
Sage Weil 2016-06-22 11:59:48 -04:00
parent c83374ff71
commit ef5a677870

9
do_cmake.sh Executable file
View File

@ -0,0 +1,9 @@
#!/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 $@ ..