Add gg
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Thu, 13 Jan 2011 16:56:39 +0000 (08:56 -0800)
committerColin 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]

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 "$@"