X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=autogen.sh;h=e33c225905783f4a3b850315bbaa7d8fcb21f6b3;hb=afe5813a482478642acc0aacfe195d465e0f1e2c;hp=3d04d84afe55b1e246fbae27842e8e4b5c36e5e6;hpb=ce7eefa04b3bfabdd23dd80d594041cbcfb08fba;p=fs%2Flustre-release.git diff --git a/autogen.sh b/autogen.sh old mode 100644 new mode 100755 index 3d04d84..e33c225 --- a/autogen.sh +++ b/autogen.sh @@ -1,62 +1,23 @@ -#!/bin/sh +#!/bin/bash +# SPDX-License-Identifier: GPL-2.0 -# NOTE: Please avoid bashisms (bash specific syntax) in this script +# +# This file is part of Lustre, http://www.lustre.org/ +# +# autogen.sh +# +# Run various autotools, thereby creating the configure +# script and top-level make files +# -# 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 +set -e +pw="$PWD" +for dir in libcfs lnet lustre snmp ; do + ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $pw/$dir/autoconf" 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 <