From 126c989ad067502ca718d29f5ffa8a53d6b0fb0d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 21 Dec 2008 21:31:03 +0100 Subject: env: Added makeflags with proper -j (via post-update hook) --- hooks/post-update | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'hooks/post-update') diff --git a/hooks/post-update b/hooks/post-update index aec203d..97a89dd 100644 --- a/hooks/post-update +++ b/hooks/post-update @@ -21,6 +21,10 @@ for snippet in $PDIR/*/provides/zsh/*(.N); { echo "source ${snippet/$HOME/\$HOME}" >> $PDIR/zsh/provided/includes } +# A machine rarely gets a new CPU, so why not do this here... +echo export MAKEFLAGS=\ +\"j$(( $(grep '^processor' /proc/cpuinfo|wc -l) + 1 ))\" >> $PDIR/zsh/provided/env + cd $PDIR/zsh/etc zcompile functions.zwc functions/* zcompile completions.zwc completions/* -- cgit v1.2.3