From 76c9b19bc8842a13ac3978b788dc434d7e9612f5 Mon Sep 17 00:00:00 2001 From: Martin/Geno Date: Thu, 12 Sep 2019 22:38:06 +0000 Subject: [PATCH] make count of jobs hackable by env --- build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index cff791e..e7ba50a 100755 --- a/build.sh +++ b/build.sh @@ -3,6 +3,7 @@ # environmental and build settings KEYFILE="${KEYFILE:-"$HOME/.ecdsakey"}" GLUON_PRIORITY="${GLUON_PRIORITY:-7}" +JOBS=${JOBS:-"$(grep -c '^processor' /proc/cpuinfo)"} # start of script set -eu @@ -26,7 +27,7 @@ fi for target in $GLUON_TARGETS; do echo "Building target ${target}" schedtool -B -e \ - make --jobs=$(grep -c '^processor' /proc/cpuinfo) --output-sync=recurse \ + make --jobs=$JOBS --output-sync=recurse \ GLUON_TARGET="$target" V=s done