2012-08-08 23:31:51 +04:00
|
|
|
#!/bin/sh -x
|
|
|
|
|
|
|
|
# The tarballs to make
|
|
|
|
if [ $# -eq 0 ] ; then
|
2014-10-04 01:04:18 +04:00
|
|
|
branches="v1.8"
|
2012-08-08 23:31:51 +04:00
|
|
|
else
|
2014-10-04 01:04:18 +04:00
|
|
|
branches=$1
|
|
|
|
shift
|
2012-08-08 23:31:51 +04:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Build root - scratch space
|
|
|
|
build_root=/home/mpiteam/openmpi/release/
|
|
|
|
|
|
|
|
# Script to execute
|
|
|
|
script=contrib/dist/make_dist_tarball
|
|
|
|
|
|
|
|
export PATH=$HOME/local/bin:$PATH
|
|
|
|
export LD_LIBRARY_PATH=$HOME/local/lib:$LD_LIBRARY_PATH
|
|
|
|
|
|
|
|
#####
|
|
|
|
#
|
|
|
|
# Actually do stuff
|
|
|
|
#
|
|
|
|
#####
|
|
|
|
|
|
|
|
# load the modules configuration
|
|
|
|
. /etc/profile.d/modules.sh
|
|
|
|
module use ~/modules
|
|
|
|
|
|
|
|
# move to the directory
|
|
|
|
# Loop making them
|
2014-10-04 01:04:18 +04:00
|
|
|
for branch in $branches; do
|
|
|
|
cd $build_root/$branch
|
2012-08-08 23:31:51 +04:00
|
|
|
|
2014-10-04 01:04:18 +04:00
|
|
|
module load "autotools/ompi-$branch"
|
2012-08-08 23:31:51 +04:00
|
|
|
|
2014-10-04 01:04:18 +04:00
|
|
|
./$script $@ >dist.out 2>&1
|
2012-08-08 23:31:51 +04:00
|
|
|
if test "$?" != "0"; then
|
|
|
|
cat <<EOF
|
|
|
|
=============================================================================
|
|
|
|
== Dist failure
|
|
|
|
== Last few lines of output (full results in dist.out file):
|
|
|
|
=============================================================================
|
|
|
|
EOF
|
|
|
|
tail -n 20 dist.out
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2014-10-04 01:04:18 +04:00
|
|
|
module unload "autotools"
|
2012-08-08 23:31:51 +04:00
|
|
|
done
|