changeset 1164:3a959ee85558

Make NO_CLEANUP work with sources/sections/gcc.sh
author Rob Landley <rob@landley.net>
date Sat, 10 Jul 2010 23:38:51 -0500
parents 2b05860c6cf1
children 4ead0bad4ad8
files sources/sections/gcc.sh
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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