[csw-devel] [PATCH] mGAR v2: background some of the directory deleting
Maciej Blizinski
maciej at opencsw.org
Fri Feb 3 13:43:14 CET 2012
Targets like 'spotless' can take time on large builds, let's background them
and return the prompt.
---
gar/v2/gar.mk | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/gar/v2/gar.mk b/gar/v2/gar.mk
index 37d28e7..243e47c 100644
--- a/gar/v2/gar.mk
+++ b/gar/v2/gar.mk
@@ -999,11 +999,15 @@ imageclean:
@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))
--
1.7.5.4
More information about the devel
mailing list