changeset 1033:87b3a69ca71c

Delete empty build/temp-* directories when we're done with them.
author Rob Landley <rob@landley.net>
date Thu, 08 Apr 2010 23:09:13 -0500
parents 5bf287810741
children 27c38c82401d
files sources/functions.sh
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/sources/functions.sh	Wed Apr 07 18:49:30 2010 -0400
+++ b/sources/functions.sh	Thu Apr 08 23:09:13 2010 -0500
@@ -601,6 +601,10 @@
 
 function create_stage_tarball()
 {
+  # Remove the temporary directory, if empty
+
+  rmdir "$WORK" 2>/dev/null
+
   # Handle linking to base architecture if we just built a derivative target.
 
   cd "$BUILD" || dienow