git://git.jankratochvil.net
/
nethome.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c3353ef
)
+-j
author
lace
<>
Thu, 11 Oct 2007 19:42:40 +0000
(19:42 +0000)
committer
lace
<>
Thu, 11 Oct 2007 19:42:40 +0000
(19:42 +0000)
bin/errs2
patch
|
blob
|
history
diff --git
a/bin/errs2
b/bin/errs2
index
1bf94d7
..
7563cf7
100755
(executable)
--- a/
bin/errs2
+++ b/
bin/errs2
@@
-6,7
+6,12
@@
if [ "$1" = "-a" ];then
args="$args $1"
shift
fi
args="$args $1"
shift
fi
+j=""
+cpus="`getconf _NPROCESSORS_ONLN`"
+if [ -n "$cpus" ];then
+ j="-j$[$cpus+1]"
+fi
(
set -ex
(
set -ex
- time nice make "$@"
+ time nice make
$j
"$@"
) 2>&1|tee $args errs2
) 2>&1|tee $args errs2