Mercurial > hg > aboriginal
diff sources/functions.sh @ 1200:8651437b2b44
Add DEBUG_PACKAGE config variable to build just one package with CPUS=1.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 10 Aug 2010 00:04:30 -0500 |
parents | aa8992b35e15 |
children | ac8d9db5cf37 |
line wrap: on
line diff
--- a/sources/functions.sh Tue Aug 10 00:03:38 2010 -0500 +++ b/sources/functions.sh Tue Aug 10 00:04:30 2010 -0500 @@ -76,6 +76,9 @@ # insane rant from the glibc maintainer about why he doesn't care. is_in_list $1 $BUILD_STATIC && [ ! -z "$ARCH" ] && STATIC_FLAGS="--static" + OLDCPUS=$CPUS + is_in_list $1 $DEBUG_PACKAGE && CPUS=1 + if [ -e "$SOURCES/sections/$1".build ] then setupfor "$1" @@ -85,6 +88,7 @@ echo "=== build section $1" . "$SOURCES"/sections/"$1".sh fi + CPUS=$OLDCPUS } # Find appropriate miniconfig file