diff sources/sections/gcc.sh @ 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 c222ae88733a
children 61e7e9be8eb4
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