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