X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=autogen.sh;h=3d04d84afe55b1e246fbae27842e8e4b5c36e5e6;hp=3920385ab2dafffec2f650547f1c43e4a2ffb9b6;hb=d821adb626e050206f1b4605f1159cf65ad22af5;hpb=f64af1d45df2a76f97337b47259363f61fab6b5f diff --git a/autogen.sh b/autogen.sh index 3920385..3d04d84 100644 --- a/autogen.sh +++ b/autogen.sh @@ -1,2 +1,62 @@ #!/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 + if [ -d .git/hooks -a ! -e .git/hooks/$HOOK ]; then + ln -sf ../../build/$HOOK .git/hooks/ + fi +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 <