summaryrefslogtreecommitdiff
path: root/hooks
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-12-21 21:31:03 +0100
committerDaniel Friesel <derf@derf.homelinux.org>2008-12-21 21:31:03 +0100
commit126c989ad067502ca718d29f5ffa8a53d6b0fb0d (patch)
tree17fc6d67c19def09b5ad7a434986b230046da011 /hooks
parent2f4284cf1f83710dcafb3a3bf926bf8aab90c377 (diff)
env: Added makeflags with proper -j (via post-update hook)
Diffstat (limited to 'hooks')
-rw-r--r--hooks/post-update4
1 files changed, 4 insertions, 0 deletions
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/*