diff options
author | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2020-04-09 21:06:54 +0100 |
---|---|---|
committer | Lucio Andrés Illanes Albornoz <lucio@lucioillanes.de> | 2020-04-09 21:06:54 +0100 |
commit | 73f6c6b8ee4713e740a9862787582a2388ebc245 (patch) | |
tree | 8c2e3283e1b5756e71d543a70fa297d6beb204a4 /subr | |
parent | e1a917b9f2db8ea62d90944739d7a9071fbc8f81 (diff) | |
download | midipix_build-73f6c6b8ee4713e740a9862787582a2388ebc245.tar.bz2 midipix_build-73f6c6b8ee4713e740a9862787582a2388ebc245.tar.xz |
subr/build_init.subr:buildp_init_getopts(): exit w/ error on attempt to specify maximum parallelisation job count w/ -P vs. -p jobs.
Diffstat (limited to 'subr')
-rw-r--r-- | subr/build_init.subr | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/subr/build_init.subr b/subr/build_init.subr index 48e4fcf3..33c51e34 100644 --- a/subr/build_init.subr +++ b/subr/build_init.subr @@ -173,7 +173,11 @@ buildp_init_getopts() { F) ARG_FETCH_FORCE=1; ;; h) cat etc/build.usage; exit 0; ;; p) ARG_PARALLEL="${OPTARG}"; ;; - P) ARG_PARALLEL="auto"; ;; + P) ARG_PARALLEL="auto"; + if [ -n "${2:-}" ]\ + && rtl_isnumber "${2}"; then + _rc=1; _status="Error: maximum parallelisation job count is set with the \`-p jobs' option."; break + fi; ;; r) ARG_RESTART="${OPTARG}"; ;; R) ARG_RELAXED=1; ;; *) cat etc/build.usage; exit 1; ;; |