From: Thorsten Behrens Date: Mon, 2 Jun 2014 20:11:24 +0000 (+0200) Subject: Automagically setup submodules on first run. X-Git-Tag: v0.84~150^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f7086d36847df832409c88bb4eabcadd0e27b3fe;p=ceph.git Automagically setup submodules on first run. I mean, who's reading the README, anyway? Signed-off-by: Thorsten Behrens --- diff --git a/README b/README index f5a71bea4b08..e947add40d20 100644 --- a/README +++ b/README @@ -26,10 +26,6 @@ contributed under the terms of the applicable license. Building Ceph ============= -To prepare the source tree after it has been git cloned, - - git submodule update --init - To build the server daemons, and FUSE client, execute the following: ./autogen.sh diff --git a/autogen.sh b/autogen.sh index 43b5cc439e38..13e6d9c7f22d 100755 --- a/autogen.sh +++ b/autogen.sh @@ -28,6 +28,14 @@ else exit 1 fi +if test -d ".git" ; then + if ! git submodule update --init; then + echo "Error: could not initialize submodule projects" + echo " Network connectivity might be required." + exit 1 + fi +fi + rm -f config.cache aclocal -I m4 --install check_for_pkg_config