From 99278419e918d1dc0315059dec8fe9139e3a2cae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luc=C3=ADa=20Andrea=20Illanes=20Albornoz?= Date: Sun, 27 Mar 2022 05:06:45 +0200 Subject: devbuild.sh: updated. subr/build_init.subr:buildp_init_getopts(): implement -p max. --- devbuild.sh | 4 ++-- subr/build_init.subr | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/devbuild.sh b/devbuild.sh index 5eae0b9b..d0e1b0b7 100755 --- a/devbuild.sh +++ b/devbuild.sh @@ -23,8 +23,8 @@ devbuild_midipix() { }; devbuild_all() { - ./build.sh -a nt64 -b release -D minipix,rpm,zipdist -F ipv4 -p "${1:-auto}" -v &&\ - ./build.sh -a nt64 -b debug -D minipix,rpm,zipdist -F ipv4 -p "${1:-auto}" -v; + ./build.sh -a nt64 -b release -D minipix,rpm,zipdist -p max -v "${@}" &&\ + ./build.sh -a nt64 -b debug -D minipix,rpm,zipdist -p max -v "${@}"; }; devbuild_mirror() { diff --git a/subr/build_init.subr b/subr/build_init.subr index e83e5afd..e6459a86 100644 --- a/subr/build_init.subr +++ b/subr/build_init.subr @@ -243,6 +243,9 @@ buildp_init_getopts() { else ARG_PARALLEL=$((${ARG_PARALLEL}/2)); fi; ;; + max) if ! ARG_PARALLEL="$(rtl_get_cpu_count)"; then + _rc=1; _status="failed to get CPU count."; + fi; ;; "") ARG_PARALLEL=1; ;; *) if ! rtl_isnumber "${ARG_PARALLEL}"; then _rc=1; _status="invalid jobs count \`${ARG_PARALLEL}'."; -- cgit v1.2.3