diff options
author | Lucía Andrea Illanes Albornoz <lucia@luciaillanes.de> | 2024-04-24 19:52:18 +0200 |
---|---|---|
committer | Lucía Andrea Illanes Albornoz <lucia@luciaillanes.de> | 2024-04-24 19:52:18 +0200 |
commit | 12881ca5ef799d21a673f680bbdf43ae0f83220c (patch) | |
tree | 46366e43a402b09395afbe5d9f096e11b3fe75ef | |
parent | a37133b530b4638d2ede1e8976771610195c81ac (diff) | |
download | midipix_build-12881ca5ef799d21a673f680bbdf43ae0f83220c.tar.bz2 midipix_build-12881ca5ef799d21a673f680bbdf43ae0f83220c.tar.xz |
build.sh: accept comma-separated list of groups to build in addition to SP-separated.
-rwxr-xr-x | build.sh | 35 |
1 files changed, 19 insertions, 16 deletions
@@ -283,31 +283,34 @@ buildp_init_getopts_fn() { nonopt) local _bpigf_verb="${1}" _bpigf_rstatus="${2#\$}" \ - _bpigf_vname="" _bpigf_vval=""; + _bpigf_args="" _bpigf_vname="" _bpigf_vval=""; shift 2; if rtl_match "${1}" "=*"; then - BUILD_GROUPS_INHIBIT_DEPS=1; _bpigf_arg="${1#=}"; + BUILD_GROUPS_INHIBIT_DEPS=1; _bpigf_args="${1#=}"; else - _bpigf_arg="${1}"; + _bpigf_args="${1}"; fi; - case "${_bpigf_arg}" in - *=*) rtl_set_var_from_spec "${_bpigf_rstatus}" "${_bpigf_arg}"; - _bpigf_rc="${?}"; - ;; + rtl_llift \$_bpigf_args "," " "; + for _bpigf_arg in ${_bpigf_args}; do + case "${_bpigf_arg}" in + *=*) rtl_set_var_from_spec "${_bpigf_rstatus}" "${_bpigf_arg}"; + _bpigf_rc="${?}"; + ;; - [!a-zA-Z]*) _bpigf_rc=1; - rtl_setrstatus "${_bpigf_rstatus}" 'build group names must start with [a-zA-Z] (in argument \`'"${_bpigf_arg}"''\''.)'; - ;; + [!a-zA-Z]*) _bpigf_rc=1; + rtl_setrstatus "${_bpigf_rstatus}" 'build group names must start with [a-zA-Z] (in argument \`'"${_bpigf_arg}"''\''.)'; + ;; - *[!_bpigf_a-zA-Z]*) - _bpigf_rc=1; - rtl_setrstatus "${_bpigf_rstatus}" 'build group names must not contain [!_a-zA-Z] (in argument \`'"${_bpigf_arg}"''\''.)'; - ;; + *[!_bpigf_a-zA-Z]*) + _bpigf_rc=1; + rtl_setrstatus "${_bpigf_rstatus}" 'build group names must not contain [!_a-zA-Z] (in argument \`'"${_bpigf_arg}"''\''.)'; + ;; - *) rtl_lconcat \$BUILD_GROUPS "${_bpigf_arg}"; ;; - esac; + *) rtl_lconcat \$BUILD_GROUPS "${_bpigf_arg}"; ;; + esac; + done; if [ "${_bpigf_rc}" -ne 0 ]; then return "${_bpigf_rc}"; |