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

Adding support for licenses

parent 2f86bd3b
No related branches found
No related tags found
No related merge requests found
Pipeline #207696 canceled
This commit is part of merge request !15. Comments created here will be created in the context of that merge request.
......@@ -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.
Finish editing this message first!
Please register or to comment