X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;ds=sidebyside;f=autogen.sh;h=6edec5b0adfe9e9953204e34132fde4cf812da9a;hb=ab19dad1d77ca25856815aadf2cf10d3cf20d4a3;hp=3d04d84afe55b1e246fbae27842e8e4b5c36e5e6;hpb=ce7eefa04b3bfabdd23dd80d594041cbcfb08fba;p=fs%2Flustre-release.git diff --git a/autogen.sh b/autogen.sh index 3d04d84..6edec5b 100644 --- a/autogen.sh +++ b/autogen.sh @@ -2,26 +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 - if [ -d .git/hooks -a ! -e .git/hooks/$HOOK ]; then - ln -sf ../../build/$HOOK .git/hooks/ - fi -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="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 <