[csw-devel] SF.net SVN: gar:[17006] csw/mgar/gar/v2/gar.mk

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Mon Feb 6 17:12:24 CET 2012


Revision: 17006
          http://gar.svn.sourceforge.net/gar/?rev=17006&view=rev
Author:   wahwah
Date:     2012-02-06 16:12:24 +0000 (Mon, 06 Feb 2012)
Log Message:
-----------
mGAR v2: background some of the directory deleting

Targets like 'spotless' can take time on large builds, let's background them
and return the prompt.

Modified Paths:
--------------
    csw/mgar/gar/v2/gar.mk

Modified: csw/mgar/gar/v2/gar.mk
===================================================================
--- csw/mgar/gar/v2/gar.mk	2012-02-05 19:00:27 UTC (rev 17005)
+++ csw/mgar/gar/v2/gar.mk	2012-02-06 16:12:24 UTC (rev 17006)
@@ -999,11 +999,15 @@
 	@echo " ==> Removing $(COOKIEDIR)"
 	@-rm -rf $(COOKIEDIR)
 	@echo " ==> Removing $(WORKDIR)"
-	@-rm -rf $(WORKDIR)
+	@-rm -rf tmp-deleteme-workdir
+	@-mv $(WORKDIR) tmp-deleteme-workdir
+	@-rm -rf tmp-deleteme-workdir &
 
 spotless: imageclean
 	@echo " ==> Removing $(DESTDIR)"
-	@-rm -rf work
+	@-rm -rf work-old
+	@-mv work work-old
+	@-rm -rf work-old &
 
 # Print package dependencies
 PKGDEP_LIST = $(filter-out $(BUILDDEPS),$(DEPEND_LIST))

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list