From 417d95cfefa4b104a3ebfdb7de20874db9d84054 Mon Sep 17 00:00:00 2001 From: Thierry Parmentelat Date: Thu, 1 Jul 2010 14:22:25 +0200 Subject: [PATCH] cached the target rpms on mirror.onelab.eu --- Makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 221dd51..cb9617c 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,8 @@ WEBFETCH := curl -H Pragma: -O -R -S --fail --show-error SHA1SUM := sha1sum -REPO := http://pkg.mytestbed.net/omf-5.3-federation-v1.1/yum/base/8/i386/ +#REPO := http://pkg.mytestbed.net/omf-5.3-federation-v1.1/yum/base/8/i386/ +REPO := http://mirror.onelab.eu/third-party/omf-5.3-federation-v1.1 ALL += omf-resctl omf-resctl-URL := $(REPO)/omf-resctl-5.3-1ubuntu2-2.noarch.rpm @@ -65,6 +66,14 @@ clean: rm -f $(CLEAN) .PHONY: clean +repobase:=$(subst http://pkg.mytestbed.net/,,$(subst /yum/base/8/i386/,,$(REPO))) +# this echoes a script that can be ran on the mirror +mirror: + @( echo mkdir -p $(repobase); echo cd $(repobase) ; \ + $(foreach target,$(ALL), echo curl -O $(REPO)/$($(target)) ; ) ) + +.PHONY: mirror + #################### convenience, for debugging only # make +foo : prints the value of $(foo) # make ++foo : idem but verbose, i.e. foo=$(foo) -- 2.43.0