build: handle new option to pass modbuild configuration file

This commit is contained in:
2018-10-26 15:24:34 +02:00
parent f90736f879
commit 1387c36253
+3 -2
View File
@@ -104,6 +104,7 @@ pmodules::compile() {
shift
"${BOOTSTRAP_DIR}/Pmodules/modbuild" \
"--config=${config_file}" \
"${BOOTSTRAP_DIR}/Tools/${name}/build" \
"${build_opts[@]}" "$@" "${version}" || \
std::die 3 "Compiling '${name}' failed!"
@@ -121,11 +122,11 @@ pmodules::compile() {
build_opts+=( "$1" )
;;
--config )
config_file="$2"
config_file=$(std::get_abspath "$2")
shift 1
;;
--config=* )
config_file="${1#*=}"
config_file=$(std::get_abspath "${1#*=}")
;;
--install-root )
PMODULES_ROOT="$2"