X-Git-Url: https://git.jankratochvil.net/?a=blobdiff_plain;f=bin%2Ferrs2;h=7563cf7492bb30d60bf7630ff50823b52964d3fe;hb=ac5b4a80b959199a26104a5fffeda4c5d86bdc28;hp=1bf94d7ef608dd30860a8e2974310c2537113904;hpb=ec8ee06f04c2a3e31ca82dfffdfb48adae710861;p=nethome.git diff --git a/bin/errs2 b/bin/errs2 index 1bf94d7..7563cf7 100755 --- a/bin/errs2 +++ b/bin/errs2 @@ -6,7 +6,12 @@ if [ "$1" = "-a" ];then args="$args $1" shift fi +j="" +cpus="`getconf _NPROCESSORS_ONLN`" +if [ -n "$cpus" ];then + j="-j$[$cpus+1]" +fi ( set -ex - time nice make "$@" + time nice make $j "$@" ) 2>&1|tee $args errs2