3 # NOTE: Please avoid bashisms (bash specific syntax) in this script
5 # install Lustre Git commit hooks by default - LU-2083
6 for HOOK in commit-msg prepare-commit-msg; do
7 [ -e .git/hooks/$HOOK ] || ln -sf ../../build/$HOOK .git/hooks/
10 echo "Checking for a complete tree..."
11 REQUIRED_DIRS="libcfs lnet lustre"
12 OPTIONAL_DIRS="snmp portals"
13 CONFIGURE_DIRS="libsysio lustre-iokit ldiskfs"
15 for dir in $REQUIRED_DIRS ; do
16 if [ ! -d "$dir" ] ; then
18 Your tree seems to be missing $dir.
19 Please read README.lustrecvs for details.
23 ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $PWD/$dir/autoconf"
25 # optional directories for Lustre
26 for dir in $OPTIONAL_DIRS; do
27 if [ -d "$dir" ] ; then
28 ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $PWD/$dir/autoconf"
35 echo -n "Running $cmd"
38 if [ $res -ne 0 ]; then
46 run_cmd "aclocal -I $PWD/config $ACLOCAL_FLAGS"
48 run_cmd "automake -a -c"
51 # Run autogen.sh in these directories
53 for dir in $CONFIGURE_DIRS; do
56 echo "Running autogen for $dir..."
57 run_cmd "sh autogen.sh"