Skip to content
Snippets Groups Projects
Commit a01a2ac6 authored by Nicolas Richart's avatar Nicolas Richart
Browse files

Adding support for licenses

parent b75e4e7b
No related branches found
No related tags found
1 merge request!15Add gurobi 11
......@@ -58,10 +58,6 @@ cp ${STACK_CONFIG_PATH}/spack.yaml ${SPACK_SYSTEM_CONFIG_PATH}
replace_placholders ${SPACK_SYSTEM_CONFIG_PATH}/spack.yaml
cp -r "${STACK_CONFIG_PATH}/templates" ${SPACK_SYSTEM_CONFIG_PATH}
for file in mirrors packages concretizer config definitions modules
do
for suffix in ${!file_mapping[@]}
......@@ -78,12 +74,22 @@ do
done
done
cat <<EOF > ${SPACK_SYSTEM_CONFIG_PATH}/config_stack.yaml
config:
echo "config:" > ${SPACK_SYSTEM_CONFIG_PATH}/config_stack.yaml
if [ -d cp -r "${STACK_CONFIG_PATH}/templates" ${SPACK_SYSTEM_CONFIG_PATH} ]
then
cp -r "${STACK_CONFIG_PATH}/templates" ${SPACK_SYSTEM_CONFIG_PATH}
cat <<EOF >> ${SPACK_SYSTEM_CONFIG_PATH}/config_stack.yaml
template_dirs:
- ${SPACK_SYSTEM_CONFIG_PATH}/templates
EOF
fi
if [ -d "${STACK_CONFIG_PATH}/licenses" ]
then
cp -r "${STACK_CONFIG_PATH}/licenses" ${SPACK_SYSTEM_CONFIG_PATH}
echo " license_dir: ${SPACK_SYSTEM_CONFIG_PATH}/licenses" >> ${SPACK_SYSTEM_CONFIG_PATH}/config_stack.yaml
fi
cat <<EOF > ${SPACK_SYSTEM_CONFIG_PATH}/modules_stack.yaml
modules:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment