X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=autogen.sh;h=b0706b4274ca0eb28039a1d75e647e1ff6381dba;hp=1fce0a455fc75dbe6868fadaace20be4c998bef7;hb=413b6c2e365cf3ff986611e20dd77186ed25a3ac;hpb=147839e23d49551ba61319b0812a3ef7e36cc80a diff --git a/autogen.sh b/autogen.sh index 1fce0a4..b0706b4 100644 --- a/autogen.sh +++ b/autogen.sh @@ -1,9 +1,60 @@ #!/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/ done -exec bash build/autogen.sh $@ +echo "Checking for a complete tree..." +REQUIRED_DIRS="build 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 <