X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=autogen.sh;h=5bd10be1f482c9944a6e76db5a4cd1162d997603;hp=a32c3f8bc95d3d3e890bf7d4ae75d47140cb49b6;hb=ad32c0736a971f74cbf5e750c6cae90320ec2589;hpb=658cf7b268a360339f53405ced92140d1ddc1621 diff --git a/autogen.sh b/autogen.sh index a32c3f8..5bd10be 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="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 <