changeset 567:5619a7375b74

Add NO_CLEANUP option to config.
author Rob Landley <rob@landley.net>
date Wed, 07 Jan 2009 05:20:29 -0600
parents 7a820e5c8ca5
children 856ba27e397b
files config sources/functions.sh
diffstat 2 files changed, 12 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/config	Tue Jan 06 02:13:29 2009 -0600
+++ b/config	Wed Jan 07 05:20:29 2009 -0600
@@ -31,9 +31,13 @@
 
 # export USE_TOYBOX=1
 
-# Try development versions of these packages
+# Try development versions of these packages.  (Know what you're doing if
+# you select these, it's quite possible the result won't work.)
 
-# export USE_UNSTABLE=uClibc,busybox,toybox
+# export USE_UNSTABLE=uClibc,busybox,toybox,linux,binutils,make,gcc-core,gcc-g++
+
+# Debugging option to leave source in build/temp-$ARCH after build.
+# export NO_CLEANUP=1
 
 # If this is set, the output of the various stages will be color coded.
 # export USE_COLOR=1
--- a/sources/functions.sh	Tue Jan 06 02:13:29 2009 -0600
+++ b/sources/functions.sh	Wed Jan 07 05:20:29 2009 -0600
@@ -27,6 +27,12 @@
 
   [ $? -ne 0 ] && dienow
 
+  if [ ! -z "$NO_CLEANUP" ]
+  then
+    echo "skip cleanup $@"
+    return
+  fi
+
   for i in "$@"
   do
     unstable "$i" && i="$PACKAGE"