r3605 - jhalfs/branches/ablfs/common

pierre at linuxfromscratch.org pierre at linuxfromscratch.org
Sat Mar 17 05:11:26 PDT 2012


Author: pierre
Date: 2012-03-17 06:11:22 -0600 (Sat, 17 Mar 2012)
New Revision: 3605

Modified:
   jhalfs/branches/ablfs/common/common-functions
Log:
change the cleaning code so that sources is not removed when not
using BLFS tools

Modified: jhalfs/branches/ablfs/common/common-functions
===================================================================
--- jhalfs/branches/ablfs/common/common-functions	2012-03-15 15:45:20 UTC (rev 3604)
+++ jhalfs/branches/ablfs/common/common-functions	2012-03-17 12:11:22 UTC (rev 3605)
@@ -71,7 +71,10 @@
       if [ -d $BUILDDIR/sys ] ; then
         sudo rmdir $BUILDDIR/sys || exit 1
       fi
-      sudo rm -rf $BUILDDIR/{bin,boot,dev,etc,home,lib,media,mnt,opt,root,sbin,srv,tmp,tools,cross-tools,usr,var,$BLFS_ROOT}
+      sudo rm -rf $BUILDDIR/{bin,boot,dev,etc,home,lib,media,mnt,opt,root,sbin,srv,tmp,tools,cross-tools,usr,var}
+      if [[ "${BLFS_TOOL}" = "y" ]] ; then 
+        sudo rm -rf $BUILDDIR/$BLFS_ROOT
+      fi
       echo "done"
       echo -n "Cleaning $JHALFSDIR ..."
       sudo rm -rf $JHALFSDIR




More information about the alfs-log mailing list