]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
do_cmake.sh: simple cmake helper
authorSage Weil <sage@redhat.com>
Wed, 22 Jun 2016 15:59:48 +0000 (11:59 -0400)
committerSage Weil <sage@redhat.com>
Wed, 22 Jun 2016 20:42:37 +0000 (16:42 -0400)
Signed-off-by: Sage Weil <sage@redhat.com>
do_cmake.sh [new file with mode: 0755]

diff --git a/do_cmake.sh b/do_cmake.sh
new file mode 100755 (executable)
index 0000000..5f9e73a
--- /dev/null
@@ -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 $@ ..