X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=autogen.sh;h=6edec5b0adfe9e9953204e34132fde4cf812da9a;hp=3a40a5e208148968a175405525ddb0ba85a6e86a;hb=31197e43bca94d9fbb4ca2090b556d93c6c18542;hpb=5fc8551aaba3bc467647d8ea549fafee039b48f9 diff --git a/autogen.sh b/autogen.sh index 3a40a5e..6edec5b 100644 --- a/autogen.sh +++ b/autogen.sh @@ -2,24 +2,32 @@ # 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 +# die a horrible death. All output goes to stderr. +# +die() +{ + echo "bootstrap failure: $*" + echo Aborting + exit 1 +} 1>&2 + +run_cmd() +{ + echo -n "Running $*" + eval "$@" || die "command exited with code $?" + echo +} echo "Checking for a complete tree..." -REQUIRED_DIRS="build libcfs lnet lustre" +REQUIRED_DIRS="libcfs lnet lustre" OPTIONAL_DIRS="snmp portals" -CONFIGURE_DIRS="libsysio lustre-iokit ldiskfs" +CONFIGURE_DIRS="libsysio" for dir in $REQUIRED_DIRS ; do - if [ ! -d "$dir" ] ; then - cat >&2 <