From fba59813155bc4d8a1be330345f4c920a7dbdfef Mon Sep 17 00:00:00 2001 From: lace <> Date: Mon, 22 Sep 2008 23:27:14 +0000 Subject: [PATCH] +MAKEFLAGS -j setting --- .bashrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.bashrc b/.bashrc index e318e7a..fd156ad 100644 --- 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 -- 1.8.3.1