X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=autogen.sh;h=3a40a5e208148968a175405525ddb0ba85a6e86a;hp=3920385ab2dafffec2f650547f1c43e4a2ffb9b6;hb=187a94923310521cc0dd37e52a461a1fd3c3b27a;hpb=f64af1d45df2a76f97337b47259363f61fab6b5f diff --git a/autogen.sh b/autogen.sh index 3920385..3a40a5e 100644 --- a/autogen.sh +++ b/autogen.sh @@ -1,2 +1,60 @@ #!/bin/sh -exec sh build/autogen.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/ +done + +echo "Checking for a complete tree..." +REQUIRED_DIRS="build 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 <