From: Colin Patrick McCabe Date: Thu, 13 Jan 2011 16:56:39 +0000 (-0800) Subject: Add gg X-Git-Url: http://club.cc.cmu.edu/~cmccabe/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=132e15c7f0e68fbd4428171791c5ba6e2be9537c;p=cmccabe-bin Add gg Signed-off-by: Colin McCabe --- diff --git a/gg b/gg new file mode 100755 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 "$@"