summaryrefslogtreecommitdiffhomepage
path: root/subr/build_init.subr
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-03-11 17:37:15 +0000
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-03-11 17:37:15 +0000
commit5f8a1589af2cb737566fc44fbb29f95b478e2e8c (patch)
treeefa258f6c989beaf341f49119f168f8620fee049 /subr/build_init.subr
parentf243bed357feef6e7554767c44a6b6c97b11c3ec (diff)
downloadmidipix_build-5f8a1589af2cb737566fc44fbb29f95b478e2e8c.tar.bz2
midipix_build-5f8a1589af2cb737566fc44fbb29f95b478e2e8c.tar.xz
subr/build_init.subr:buildp_init_getopts(): --dump-on-abort excludes -R.
etc/{build.usage,README.md}: updated.
Diffstat (limited to 'subr/build_init.subr')
-rw-r--r--subr/build_init.subr26
1 files changed, 15 insertions, 11 deletions
diff --git a/subr/build_init.subr b/subr/build_init.subr
index e07facaf..c5f91174 100644
--- a/subr/build_init.subr
+++ b/subr/build_init.subr
@@ -162,18 +162,22 @@ buildp_init_getopts() {
fi;
done;
if [ "${_rc}" -eq 0 ]; then
- while [ ${#} -gt 0 ]; do
- if [ "${1#\*}" != "${1}" ]; then
- BUILD_GROUPS_INHIBIT_DEPS=1; _arg="${1#\*}";
- else
- _arg="${1}";
+ if [ "${ARG_DUMP_ON_ABORT:-0}" -eq 1 ]\
+ && [ "${ARG_RELAXED:-0}" -eq 1 ]; then
+ _rc=1; _status="Error: --dump-on-abort excludes -R.";
+ else while [ ${#} -gt 0 ]; do
+ if [ "${1#\*}" != "${1}" ]; then
+ BUILD_GROUPS_INHIBIT_DEPS=1; _arg="${1#\*}";
+ else
+ _arg="${1}";
+ fi;
+ case "${_arg}" in
+ *=*) rtl_set_var_unsafe "${_arg%%=*}" "${_arg#*=}"; ;;
+ [^a-zA-Z]*) _rc=1; _status="Error: build group names must start with [a-zA-Z] (in argument \`${_arg}'.)"; ;;
+ *[^_a-zA-Z]*) _rc=1; _status="Error: build group names must not contain [^_a-zA-Z] (in argument \`${_arg}'.)"; ;;
+ *) BUILD_GROUPS="$(rtl_lconcat "${BUILD_GROUPS}" "${_arg}")"; ;;
+ esac; shift; done;
fi;
- case "${_arg}" in
- *=*) rtl_set_var_unsafe "${_arg%%=*}" "${_arg#*=}"; ;;
- [^a-zA-Z]*) _rc=1; _status="Error: build group names must start with [a-zA-Z] (in argument \`${_arg}'.)"; ;;
- *[^_a-zA-Z]*) _rc=1; _status="Error: build group names must not contain [^_a-zA-Z] (in argument \`${_arg}'.)"; ;;
- *) BUILD_GROUPS="$(rtl_lconcat "${BUILD_GROUPS}" "${_arg}")"; ;;
- esac; shift; done;
fi;
return "${_rc}";
};