From aeed2f1fc8f72fa45601e0e364cff64933b292bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Pierret?= Date: Sat, 28 Oct 2017 07:17:30 -0400 Subject: [PATCH] Add support for templates upload and syncing --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 3d6a8ce..c4b4a2c 100644 --- a/Makefile +++ b/Makefile @@ -58,6 +58,14 @@ endif sudo env -i $(foreach var,$(TEMPLATE_ENV_WHITELIST),$(var)="$($(var))") \ ./qubeize_image prepared_images/$(TEMPLATE_NAME).img $(TEMPLATE_NAME) +update-repo-templates-itl: update-repo-templates.itl +update-repo-templates-community: update-repo-templates.community + +update-repo-templates.%: repo = $(subst .,,$(suffix $@)) +update-repo-templates.%: + [ -z "$$UPDATE_REPO" ] && UPDATE_REPO=../linux-yum/current-release/templates-$(repo);\ + ln -f rpm/noarch/qubes-template-$(TEMPLATE_NAME)-$(VERSION)-$(shell cat build_timestamp_$(TEMPLATE_NAME))*.noarch.rpm $$UPDATE_REPO/rpm + update-repo-installer: [ -z "$$UPDATE_REPO" ] && UPDATE_REPO=../installer/yum/qubes-dom0;\ ln -f rpm/noarch/qubes-template-$(TEMPLATE_NAME)-$(VERSION)-$(shell cat build_timestamp_$(TEMPLATE_NAME))*.noarch.rpm $$UPDATE_REPO/rpm