mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-11-10 08:13:58 +01:00
build: handle new option to pass modbuild configuration file
This commit is contained in:
1 parent
f90736f879
commit
1387c36253
1 file changed
+3
-2
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user