X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=autogen.sh;h=b0706b4274ca0eb28039a1d75e647e1ff6381dba;hb=c961228f1c30254c454ed1432ba83af3aa7c39b4;hp=a32c3f8bc95d3d3e890bf7d4ae75d47140cb49b6;hpb=658cf7b268a360339f53405ced92140d1ddc1621;p=fs%2Flustre-release.git diff --git a/autogen.sh b/autogen.sh index a32c3f8..b0706b4 100644 --- a/autogen.sh +++ b/autogen.sh @@ -1,2 +1,60 @@ #!/bin/sh -exec bash 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 <