From 4043e5cd3f3a0b13e4cf98be9ac9485bc780e982 Mon Sep 17 00:00:00 2001 From: Joanna Rutkowska Date: Fri, 24 Jun 2011 15:48:08 +0200 Subject: [PATCH] Makefile: automaically copy rpms to _all_ vm repos --- Makefile.common | 35 +++++++++++++++-------------------- 1 file changed, 15 insertions(+), 20 deletions(-) diff --git a/Makefile.common b/Makefile.common index e5d6cd7..31ffa75 100644 --- a/Makefile.common +++ b/Makefile.common @@ -91,36 +91,31 @@ update-repo-current: ln -f rpm/x86_64/kernel-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/current/dom0/rpm/ ln -f rpm/x86_64/kernel-debuginfo-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/current/dom0/rpm/ ln -f rpm/x86_64/kernel-devel-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/current/dom0/rpm/ - ln -f rpm/x86_64/kernel-domU-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/current/vm/f13/rpm/ - ln -f rpm/x86_64/kernel-domU-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/current/vm/f14/rpm/ - ln -f rpm/x86_64/kernel-debuginfo-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/current/vm/f13/rpm/ - ln -f rpm/x86_64/kernel-debuginfo-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/current/vm/f14/rpm/ - ln -f rpm/x86_64/kernel-devel-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/current/vm/f13/rpm/ - ln -f rpm/x86_64/kernel-devel-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/current/vm/f14/rpm/ + for vmrepo in ../yum/current-release/current/vm/* ; do \ + ln -f rpm/x86_64/kernel-domU-$(VERSION)-$(RELEASE)*.rpm $$vmrepo/rpm/ ;\ + ln -f rpm/x86_64/kernel-debuginfo-$(VERSION)-$(RELEASE)*.rpm $$vmrepo/rpm/ ;\ + ln -f rpm/x86_64/kernel-devel-$(VERSION)-$(RELEASE)*.rpm $$vmrepo/rpm/ ;\ + done update-repo-current-testing: ln -f rpm/x86_64/kernel-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/current-testing/dom0/rpm/ ln -f rpm/x86_64/kernel-debuginfo-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/current-testing/dom0/rpm/ ln -f rpm/x86_64/kernel-devel-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/current-testing/dom0/rpm/ - ln -f rpm/x86_64/kernel-domU-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/current-testing/vm/f13/rpm/ - ln -f rpm/x86_64/kernel-domU-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/current-testing/vm/f14/rpm/ - ln -f rpm/x86_64/kernel-debuginfo-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/current-testing/vm/f13/rpm/ - ln -f rpm/x86_64/kernel-debuginfo-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/current-testing/vm/f14/rpm/ - ln -f rpm/x86_64/kernel-devel-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/current-testing/vm/f13/rpm/ - ln -f rpm/x86_64/kernel-devel-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/current-testing/vm/f14/rpm/ - + for vmrepo in ../yum/current-release/current-testing/vm/* ; do \ + ln -f rpm/x86_64/kernel-domU-$(VERSION)-$(RELEASE)*.rpm $$vmrepo/rpm/ ;\ + ln -f rpm/x86_64/kernel-debuginfo-$(VERSION)-$(RELEASE)*.rpm $$vmrepo/rpm/ ;\ + ln -f rpm/x86_64/kernel-devel-$(VERSION)-$(RELEASE)*.rpm $$vmrepo/rpm/ ;\ + done update-repo-unstable: ln -f rpm/x86_64/kernel-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/unstable/dom0/rpm/ ln -f rpm/x86_64/kernel-debuginfo-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/unstable/dom0/rpm/ ln -f rpm/x86_64/kernel-devel-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/unstable/dom0/rpm/ - ln -f rpm/x86_64/kernel-domU-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/unstable/vm/f13/rpm/ - ln -f rpm/x86_64/kernel-domU-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/unstable/vm/f14/rpm/ - ln -f rpm/x86_64/kernel-debuginfo-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/unstable/vm/f13/rpm/ - ln -f rpm/x86_64/kernel-debuginfo-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/unstable/vm/f14/rpm/ - ln -f rpm/x86_64/kernel-devel-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/unstable/vm/f13/rpm/ - ln -f rpm/x86_64/kernel-devel-$(VERSION)-$(RELEASE)*.rpm ../yum/current-release/unstable/vm/f14/rpm/ - + for vmrepo in ../yum/current-release/unstable/vm/* ; do \ + ln -f rpm/x86_64/kernel-domU-$(VERSION)-$(RELEASE)*.rpm $$vmrepo/rpm/ ;\ + ln -f rpm/x86_64/kernel-debuginfo-$(VERSION)-$(RELEASE)*.rpm $$vmrepo/rpm/ ;\ + ln -f rpm/x86_64/kernel-devel-$(VERSION)-$(RELEASE)*.rpm $$vmrepo/rpm/ ;\ + done # mop up, printing out exactly what was mopped.