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} ...@@ -58,10 +58,6 @@ cp ${STACK_CONFIG_PATH}/spack.yaml ${SPACK_SYSTEM_CONFIG_PATH}
replace_placholders ${SPACK_SYSTEM_CONFIG_PATH}/spack.yaml 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 for file in mirrors packages concretizer config definitions modules
do do
for suffix in ${!file_mapping[@]} for suffix in ${!file_mapping[@]}
...@@ -78,12 +74,22 @@ do ...@@ -78,12 +74,22 @@ do
done done
done done
echo "config:" > ${SPACK_SYSTEM_CONFIG_PATH}/config_stack.yaml
cat <<EOF > ${SPACK_SYSTEM_CONFIG_PATH}/config_stack.yaml if [ -d cp -r "${STACK_CONFIG_PATH}/templates" ${SPACK_SYSTEM_CONFIG_PATH} ]
config: then
cp -r "${STACK_CONFIG_PATH}/templates" ${SPACK_SYSTEM_CONFIG_PATH}
cat <<EOF >> ${SPACK_SYSTEM_CONFIG_PATH}/config_stack.yaml
template_dirs: template_dirs:
- ${SPACK_SYSTEM_CONFIG_PATH}/templates - ${SPACK_SYSTEM_CONFIG_PATH}/templates
EOF 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 cat <<EOF > ${SPACK_SYSTEM_CONFIG_PATH}/modules_stack.yaml
modules: modules:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment