Skip to content

Commit cfc2d64

Browse files
committed
openmpi-release.sh: update for git
Also add consistent indenting to make the loop easier to read. (cherry picked from commit 0997c91)
1 parent a41dc4e commit cfc2d64

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

contrib/build-server/openmpi-release.sh

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
# The tarballs to make
44
if [ $# -eq 0 ] ; then
5-
dirs="branches/v1.8"
5+
branches="v1.8"
66
else
7-
dirs=$@
7+
branches=$1
8+
shift
89
fi
910

1011
# Build root - scratch space
@@ -29,14 +30,12 @@ module load sowing
2930

3031
# move to the directory
3132
# Loop making them
32-
for dir in $dirs; do
33-
ver=`basename $dir`
33+
for branch in $branches; do
34+
cd $build_root/$branch
3435

35-
cd $build_root/$ver
36+
module load "autotools/ompi-$branch"
3637

37-
module load "autotools/ompi-$ver"
38-
39-
./$script $@ >dist.out 2>&1
38+
./$script $@ >dist.out 2>&1
4039
if test "$?" != "0"; then
4140
cat <<EOF
4241
=============================================================================
@@ -48,5 +47,5 @@ EOF
4847
exit 1
4948
fi
5049

51-
module unload "autotools"
50+
module unload "autotools"
5251
done

0 commit comments

Comments
 (0)