Fixed a bug in autotest 'make.sh' script

This commit is contained in:
Rob Falgout 2020-05-19 07:22:37 -07:00
parent 6c0e7d2418
commit 7336eab090

View File

@ -31,12 +31,16 @@ src_dir=`cd $1; pwd`
shift shift
# Parse the rest of the command line # Parse the rest of the command line
mopts=""
while [ "$*" ] while [ "$*" ]
do do
case $1 in case $1 in
-spack) -spack)
shift; spackdir="$1"; shift shift; spackdir="$1"; shift
;; ;;
*)
mopts="$mopts $1"; shift
;;
esac esac
done done
@ -45,7 +49,7 @@ cd $src_dir
make clean make clean
if [ -n "$spackdir" ]; then if [ -n "$spackdir" ]; then
cd $src_dir/test cd $src_dir/test
make HYPRE_BUILD_DIR="$spackdir" $@ make HYPRE_BUILD_DIR="$spackdir" $mopts
else else
make $@ make $mopts
fi fi