0581364508
Open MPI tarballs are not saved anywhere besides the local disk of the build server (eddie.osl.iu.edu). So I'm putting them here in SVN so that if something ever happens to eddie, we still have the scripts to make a new build server. See the README.txt for more details. This commit was SVN r26978.
57 строки
1.1 KiB
Bash
Исполняемый файл
57 строки
1.1 KiB
Bash
Исполняемый файл
#!/bin/sh -x
|
|
|
|
# The tarballs to make
|
|
#dirs="/branches/v1.2 /branches/v1.1 /branches/v1.0 /trunk"
|
|
|
|
# The tarballs to make
|
|
if [ $# -eq 0 ] ; then
|
|
dirs="branches/v1.6"
|
|
else
|
|
dirs=$@
|
|
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
|
|
#JJH File No longer exists: . /etc/profile.d/00-modules.sh
|
|
. /etc/profile.d/modules.sh
|
|
module use ~/modules
|
|
module load sowing
|
|
|
|
# move to the directory
|
|
# Loop making them
|
|
for dir in $dirs; do
|
|
ver=`basename $dir`
|
|
|
|
cd $build_root/$ver
|
|
|
|
module load "autotools/ompi-$ver"
|
|
|
|
./$script $@ >dist.out 2>&1
|
|
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
|
|
|
|
module unload "autotools"
|
|
done
|