+MAKEFLAGS -j setting
authorlace <>
Mon, 22 Sep 2008 23:27:14 +0000 (23:27 +0000)
committerlace <>
Mon, 22 Sep 2008 23:27:14 +0000 (23:27 +0000)
.bashrc

diff --git a/.bashrc b/.bashrc
index e318e7a..fd156ad 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -189,6 +189,12 @@ export HISTFILESIZE="$HISTSIZE"
 export GDBHISTFILE="$HOME/.gdb_history"
 export CVS_RSH="ssh"
 export TZ=":/usr/share/zoneinfo/Europe/Prague"
+MAKEFLAGS=
+cpus="`getconf _NPROCESSORS_ONLN`"
+if [ -n "$cpus" ];then
+       MAKEFLAGS="$MAKEFLAGS -j$[$cpus+1]"
+fi
+unset cpus
 # Do not: grep -w "$TERM" /etc/termcap >/dev/null || export TERM=vt220
 # as Sun workaround as Debian misses: /etc/termcap
 # expects: $uname_p