Merge branch '267-build-system-option-overlay-is-only-allowed-with-legacy-config-files' into 'master'

Resolve "build-system: option --overlay is only allowed with legacy config files"

Closes #267

See merge request Pmodules/src!244
This commit is contained in:
2024-05-02 17:22:12 +02:00
+8 -3
View File
@@ -145,10 +145,12 @@ MISCELLANEOUS OPTIONS:
--tmpdir
Directory used for building a module.
--overlay
Install in this overlay. Defaults to '${PMODULES_HOME%%/Tools*}'.
--legacy
Use legacy configuration files.
Use legacy configuration files.
--overlay
Install in this overlay. Defaults to the base overlay. This
option can only be used with legacy configuration file.
DOCUMENTATION:
Full documentation is available at
@@ -397,6 +399,9 @@ parse_args() {
"%s -- %s" \
"YAML config file doesn't exist or is not readable" \
"${yaml_config_file}"
[[ "${opt_overlay}" == 'yes' ]] && \
std::die 2 \
"opt '--overlay' can only be used together with legacy config files!"
std::info "Using YAML configuration file - ${yaml_config_file}"
fi
}