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.
78 строки
1.6 KiB
Bash
Исполняемый файл
78 строки
1.6 KiB
Bash
Исполняемый файл
#!/bin/sh
|
|
|
|
#####
|
|
#
|
|
# Configuration options
|
|
#
|
|
#####
|
|
|
|
# e-mail address to send results to
|
|
results_addr=testing@open-mpi.org
|
|
#results_addr=timattox@open-mpi.org
|
|
|
|
# svn repository uri
|
|
code_uri=http://svn.open-mpi.org/svn/ompi
|
|
|
|
# where to put built tarballs
|
|
outputroot=/l/osl/www/www.open-mpi.org/nightly
|
|
|
|
# where to find the build script
|
|
script_uri=${code_uri}/trunk/contrib/nightly/create_tarball.sh
|
|
|
|
# The tarballs to make
|
|
#if [ $# -eq 0 ] ; then
|
|
dirs="tmp/rhc-step2b"
|
|
ver=trunk
|
|
#else
|
|
# dirs=$@
|
|
# ver=trunk
|
|
#fi
|
|
|
|
# Build root - scratch space
|
|
build_root=/home/mpiteam/openmpi/nightly-tarball-build-root
|
|
|
|
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
|
|
|
|
# get our nightly build script
|
|
mkdir -p $build_root
|
|
cd $build_root
|
|
script=`basename $script_uri`
|
|
wget --quiet --no-check-certificate --tries=10 $script_uri -O $script
|
|
if test ! $? -eq 0 ; then
|
|
echo "wget of Open MPI nightly tarball create script failed."
|
|
if test -f $script ; then
|
|
echo "Using older version of $script for this run."
|
|
else
|
|
echo "No build script available. Aborting."
|
|
exit 1
|
|
fi
|
|
fi
|
|
chmod +x $script
|
|
|
|
# Loop making them
|
|
for dir in $dirs; do
|
|
# ver=`basename $dir`
|
|
|
|
module load "autotools/ompi-$ver"
|
|
|
|
./$script \
|
|
$build_root/rhc-step2b \
|
|
$results_addr \
|
|
$code_uri/$dir \
|
|
$outputroot/rhc-step2b >/dev/null 2>&1
|
|
module unload "autotools"
|
|
done
|