[Patch] 'prefetch': Recursively download files upfront



As a break from the fontconfig lark, this is a patch to add a new target
'prefetch' to GAR fetch all required files upfront.  Mainly intended for
those on dialup who want to do the network stuff upfront.

Cheers,
Steve


diff -u --recursive garnome-0.18.0-orig/gar.mk garnome-0.18.0/gar.mk
--- garnome-0.18.0-orig/gar.mk	2002-10-05 15:40:38.000000000 +1000
+++ garnome-0.18.0/gar.mk	2002-10-08 18:58:25.000000000 +1000
@@ -137,6 +137,13 @@
 		$(MAKE) -s -C $(GARDIR)/$$i TABLEVEL="$(TABLEVEL)\t" showdeps;\
 	done
 
+# Recursively calls fetch for each dependency
+prefetch:
+	@for i in $(LIBDEPS) $(BUILDDEPS); do \
+		$(MAKE) -s -C $(GARDIR)/$$i fetch;\
+		$(MAKE) -s -C $(GARDIR)/$$i prefetch;\
+	done
+
 # fetch			- Retrieves $(DISTFILES) (and $(PATCHFILES) if defined)
 #				  into $(DOWNLOADDIR) as necessary.
 FETCH_TARGETS =  $(addprefix $(DOWNLOADDIR)/,$(ALLFILES))




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]