#!/bin/bashdeclare-rbasedir=$(dirname$0)source'../../config/Pmodules.conf'declare-rrecipe="${basedir}/$1/build"shiftif[[!-x"${recipe}"]];thenecho"Error: no recipe to build '$1'!"exit 1fifor 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"