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 if [ -d .git/hooks -a ! -e .git/hooks/$HOOK ]; then
8 ln -sf ../../build/$HOOK .git/hooks/
12 echo "Checking for a complete tree..."
13 REQUIRED_DIRS="libcfs lnet lustre"
14 OPTIONAL_DIRS="snmp portals"
15 CONFIGURE_DIRS="libsysio lustre-iokit ldiskfs"
17 for dir in $REQUIRED_DIRS ; do
18 if [ ! -d "$dir" ] ; then
20 Your tree seems to be missing $dir.
21 Please read README.lustrecvs for details.
25 ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $PWD/$dir/autoconf"
27 # optional directories for Lustre
28 for dir in $OPTIONAL_DIRS; do
29 if [ -d "$dir" ] ; then
30 ACLOCAL_FLAGS="$ACLOCAL_FLAGS -I $PWD/$dir/autoconf"
37 echo -n "Running $cmd"
40 if [ $res -ne 0 ]; then
48 run_cmd "aclocal -I $PWD/config $ACLOCAL_FLAGS"
50 run_cmd "automake -a -c"
53 # Run autogen.sh in these directories
55 for dir in $CONFIGURE_DIRS; do
58 echo "Running autogen for $dir..."
59 run_cmd "sh autogen.sh"