From ff240abbe9dbb226d9b37cc95c181a3e09920a8c Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 25 May 2023 13:10:44 +0200 Subject: [PATCH] buildsys: derive upload dist automatically Signed-off-by: Thomas Lamprecht --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 520678c..05a4c4f 100644 --- a/Makefile +++ b/Makefile @@ -40,9 +40,13 @@ $(DSC): $(BUILDDIR) $(ORIG_SRC_TAR) sbuild: $(DSC) sbuild $(DSC) +# HACK, but this is a *very* seldom bumped package and normally 1:1 the same in all our dists +-include /etc/os-release + .PHONY: upload +upload: UPLOAD_DIST ?= $(VERSION_CODENAME) upload: $(DEB) - tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist buster + tar cf - $(DEB) | ssh -X repoman@repo.proxmox.com -- upload --product pve,pmg,pbs --dist $(UPLOAD_DIST) distclean: clean clean: