eb270172a7
Removed a redundant copy of the scripts running on the build server and moved the remaining copy out to a top-level directory in contrib (i.e., contrib/build-server vs. contrib/dist/build-server, where I never could remember where to find them).
46 строки
867 B
Bash
Исполняемый файл
46 строки
867 B
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
|
|
echo "Must specify which SVN branch to create (e.g., branches/v0.9)"
|
|
exit 1
|
|
fi
|
|
dirs=$@
|
|
|
|
# Build root - scratch space
|
|
build_root=/home/mpiteam/hwloc/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
|
|
for dir in $dirs; do
|
|
ver=`basename $dir`
|
|
|
|
cd $build_root/$ver
|
|
|
|
module load "autotools/hwloc-$ver"
|
|
module load "tex-live/hwloc-$ver"
|
|
|
|
./$script $@ >dist.out 2>&1
|
|
|
|
module unload autotools tex-live
|
|
done
|