# HG changeset patch # User Rob Landley # Date 1278823131 18000 # Node ID 3a959ee8555828cd3312f764dfec5de6ef6d513b # Parent 2b05860c6cf17f48b265716d9f0d46caf7b5117c Make NO_CLEANUP work with sources/sections/gcc.sh diff -r 2b05860c6cf1 -r 3a959ee85558 sources/sections/gcc.sh --- a/sources/sections/gcc.sh Sat Jul 10 23:36:43 2010 -0500 +++ b/sources/sections/gcc.sh Sat Jul 10 23:38:51 2010 -0500 @@ -141,5 +141,8 @@ 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". -mv "$WORK"/{*gcc-core,gcc} +if [ -z "$NO_CLEANUP" ] +then + mv "$WORK"/{*gcc-core,gcc} +fi PACKAGE=gcc cleanup build-gcc