From: Enrico Scholz Date: Tue, 3 Jan 2006 00:13:26 +0000 (+0000) Subject: parameterized '-j' flag X-Git-Tag: version_0_30_210~41 X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0757fd5a441effbae6eb73d15e4f74b65cf0e8c6;p=util-vserver.git parameterized '-j' flag git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2240 94cd875c-1c1d-0410-91d2-eb244daf1a30 --- diff --git a/util-vserver/build-all b/util-vserver/build-all index b994413..f110ea5 100755 --- a/util-vserver/build-all +++ b/util-vserver/build-all @@ -1,6 +1,6 @@ #! /bin/sh -# Copyright (C) 2004 Enrico Scholz +# Copyright (C) 2004,2005,2006 Enrico Scholz # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -17,13 +17,15 @@ set -e +J=-j8 + confflags="-C --enable-maintainer-mode --prefix=/usr --sysconfdir=/etc --localstatedir=/var" configure="`pwd`/configure $confflags" -make=eval\ "${CLEAN:+make -j2 silent.clean;} \ +make=eval\ "${CLEAN:+make $J silent.clean;} \ echo -e \"== executing 'make all'...\" && \ - make -j2 ${SILENT:+-s silent.}all && \ + make $J ${SILENT:+-s silent.}all && \ echo -e \"\n== executing 'make check'...\" && \ - make -j2 ${SILENT:+-s silent.}check" + make $J ${SILENT:+-s silent.}check" LANG=C CPPFLAGS='-D_FORTIFY_SOURCE=99' @@ -48,7 +50,7 @@ function operate() mkdir -p $d && cd $d test -z "$CLEAN" || rm -f config.cache - test -e Makefile || $configure "$@" + test -e Makefile || CCACHE_DISABLE=1 $configure "$@" $make cd - }