git://git.jankratochvil.net
/
nethome.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Default -j is now *1.5 (instead of +1).
[nethome.git]
/
bin
/
errs2
diff --git
a/bin/errs2
b/bin/errs2
index
1bf94d7
..
2ba4f45
100755
(executable)
--- 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*3/2]"
+fi
(
set -ex
- time nice make "$@"
+ time nice make
$j
"$@"
) 2>&1|tee $args errs2