summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucía Andrea Illanes Albornoz <lucia@luciaillanes.de>2024-04-24 19:52:18 +0200
committerLucía Andrea Illanes Albornoz <lucia@luciaillanes.de>2024-04-24 19:52:18 +0200
commit12881ca5ef799d21a673f680bbdf43ae0f83220c (patch)
tree46366e43a402b09395afbe5d9f096e11b3fe75ef
parenta37133b530b4638d2ede1e8976771610195c81ac (diff)
downloadmidipix_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-xbuild.sh35
1 files changed, 19 insertions, 16 deletions
diff --git a/build.sh b/build.sh
index 5083ea26..8d235c70 100755
--- a/build.sh
+++ b/build.sh
@@ -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}";