1
1

openmpi-release.sh: update for git

Also add consistent indenting to make the loop easier to read.
Этот коммит содержится в:
Jeff Squyres 2014-10-03 17:04:18 -04:00 коммит произвёл Howard Pritchard
родитель 5428301c81
Коммит b44a244fbc

Просмотреть файл

@ -2,9 +2,10 @@
# The tarballs to make # The tarballs to make
if [ $# -eq 0 ] ; then if [ $# -eq 0 ] ; then
dirs="branches/v1.8" branches="v1.8"
else else
dirs=$@ branches=$1
shift
fi fi
# Build root - scratch space # Build root - scratch space
@ -29,14 +30,12 @@ module load sowing
# move to the directory # move to the directory
# Loop making them # Loop making them
for dir in $dirs; do for branch in $branches; do
ver=`basename $dir` cd $build_root/$branch
cd $build_root/$ver module load "autotools/ompi-$branch"
module load "autotools/ompi-$ver" ./$script $@ >dist.out 2>&1
./$script $@ >dist.out 2>&1
if test "$?" != "0"; then if test "$?" != "0"; then
cat <<EOF cat <<EOF
============================================================================= =============================================================================
@ -48,5 +47,5 @@ EOF
exit 1 exit 1
fi fi
module unload "autotools" module unload "autotools"
done done