scripts/HDF5/build_all_variants: added

This commit is contained in:
2015-03-06 10:57:57 +01:00
parent 9473e50df0
commit 04c5b8fabd

25
scripts/HDF5/build_all_variants Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
declare -r basedir=$(dirname $0)
source '../../config/Pmodules.conf'
declare -r recipe="${basedir}/$1/build"
shift
if [[ ! -x "${recipe}" ]]; then
echo "Error: no recipe to build '$1'!"
exit 1
fi
for cc in "${COMPILER_VERSIONS[@]}"; do
for mpi in "${MPI_VERSIONS[@]}"; do
for hdf5 in "${HDF5_VERSIONS[@]}"; do
"${recipe}" "$@" --with=$cc --with=$mpi --with=$hdf5 || {
echo "Oops: build failed for:"
echo " compile: $cc"
echo " mpi: $mpi"
echo " hdf5: $hdf5"
}
done
done
done