Set HLRS spack root and install tree

This commit is contained in:
Jose Gracia 2024-04-05 16:43:40 +02:00
parent 19dc637618
commit cbfddbe6c4

16
02_hlrs_spack_root.env Normal file
View file

@ -0,0 +1,16 @@
# this file is meant to be source'd
#
# need HLRS_SOFTWARE_STACK_RELEASE_ROOT
if [ -z "${HLRS_SOFTWARE_STACK_RELEASE_ROOT}" ]; then
echo "ERROR: need environment variable HLRS_SOFTWARE_STACK_RELEASE_ROOT"
else
HLRS_SOFTWARE_STACK_SPACK_ROOT=${HLRS_SOFTWARE_STACK_RELEASE_ROOT}/spack
# the following must be a directory containing a subdir named .spack-db/
HLRS_SOFTWARE_STACK_SPACK_INSTALL_TREE=${HLRS_SOFTWARE_STACK_RELEASE_ROOT}/optional/spack
export HLRS_SOFTWARE_STACK_SPACK_ROOT HLRS_SOFTWARE_STACK_SPACK_INSTALL_TREE
fi