projects
/
cmccabe-bin
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
926e95a
)
Add gg
author
Colin Patrick McCabe
<cmccabe@alumni.cmu.edu>
Thu, 13 Jan 2011 16:56:39 +0000 (08:56 -0800)
committer
Colin Patrick McCabe
<cmccabe@alumni.cmu.edu>
Thu, 13 Jan 2011 16:56:39 +0000 (08:56 -0800)
Signed-off-by: Colin McCabe <cmccabe@alumni.cmu.edu>
gg
[new file with mode: 0755]
patch
|
blob
diff --git a/gg
b/gg
new file mode 100755
(executable)
index 0000000..
12267b3
--- /dev/null
+++ b/
gg
@@ -0,0
+1,7
@@
+#!/bin/bash
+
+ncpus=1
+if [ -e /proc/cpuinfo ]; then
+ ncpus=`cat /proc/cpuinfo | grep '^processor' | wc -l`
+fi
+make -j $ncpus "$@"