X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=autogen.sh;h=5bd10be1f482c9944a6e76db5a4cd1162d997603;hb=05403115a680adf51990bc9439d78947e8a7beba;hp=1fce0a455fc75dbe6868fadaace20be4c998bef7;hpb=147839e23d49551ba61319b0812a3ef7e36cc80a;p=fs%2Flustre-release.git diff --git a/autogen.sh b/autogen.sh index 1fce0a4..5bd10be 100644 --- a/autogen.sh +++ b/autogen.sh @@ -1,9 +1,60 @@ #!/bin/sh +# NOTE: Please avoid bashisms (bash specific syntax) in this script + # install Lustre Git commit hooks by default - LU-2083 for HOOK in commit-msg prepare-commit-msg; do - [ -e .git/hooks/$HOOK ] || ln -sf ../build/$HOOK .git/hooks/ + [ -e .git/hooks/$HOOK ] || ln -sf ../../build/$HOOK .git/hooks/ done -exec bash build/autogen.sh $@ +echo "Checking for a complete tree..." +REQUIRED_DIRS="libcfs lnet lustre" +OPTIONAL_DIRS="snmp portals" +CONFIGURE_DIRS="libsysio lustre-iokit ldiskfs" + +for dir in $REQUIRED_DIRS ; do + if [ ! -d "$dir" ] ; then + cat >&2 <