Mercurial > hg > aboriginal
diff sources/sections/gcc.sh @ 1183:61e7e9be8eb4
Add blank_workdir and make setupfor and cleanup use it. This means you can run an entire build.sh with NO_CLEANUP=1 on.
author | Rob Landley <rob@landley.net> |
---|---|
date | Fri, 30 Jul 2010 13:54:10 -0500 |
parents | 3a959ee85558 |
children | 4021fb1183d7 |
line wrap: on
line diff
--- a/sources/sections/gcc.sh Tue Jul 27 02:35:33 2010 -0500 +++ b/sources/sections/gcc.sh Fri Jul 30 13:54:10 2010 -0500 @@ -4,8 +4,10 @@ # Force gcc to build, largely against its will. -setupfor gcc-core build-gcc -[ -z "$NO_CPLUSPLUS" ] && setupfor gcc-g++ build-gcc gcc-core +setupfor gcc-core +[ -z "$NO_CPLUSPLUS" ] && REUSE_CURSRC=1 setupfor gcc-g++ + +blank_workdir build-gcc # GCC tries to "help out in the kitchen" by screwing up the kernel include # files. Surgery with sed to cut out that horrible idea throw it away. @@ -140,9 +142,6 @@ rm -rf "${STAGE_DIR}"/{lib/gcc,libexec/gcc/install-tools,bin/${ARCH}-unknown-*} -# Little dance so binary package tarball would be called "gcc", not "gcc-core". -if [ -z "$NO_CLEANUP" ] -then - mv "$WORK"/{*gcc-core,gcc} -fi -PACKAGE=gcc cleanup build-gcc +# Call binary package tarball "gcc", not "gcc-core". + +PACKAGE=gcc cleanup