]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Ensure autogen.sh to be executed at the top-level 1822/head
authorSahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
Mon, 19 May 2014 11:55:36 +0000 (13:55 +0200)
committerSahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
Mon, 19 May 2014 12:33:48 +0000 (14:33 +0200)
The commit adds a test to ensure that user executes
'autogen.sh' at the top-level of the directory.

Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@cloudwatt.com>
autogen.sh

index 103caa4577f075a948fc5386ba171b3a91ec6c81..43b5cc439e38d2c89faa3f3f6f2fda683b443f25 100755 (executable)
@@ -2,6 +2,11 @@
 
 set -e
 
+test -f src/ceph.in || {
+    echo "You must run this script in the top-level ceph directory"
+    exit 1
+}
+
 check_for_pkg_config() {
     which pkg-config >/dev/null && return