buildsys: derive upload dist automatically

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2023-05-25 13:10:44 +02:00
parent 4a28dec7f1
commit ff240abbe9

View File

@ -40,9 +40,13 @@ $(DSC): $(BUILDDIR) $(ORIG_SRC_TAR)
sbuild: $(DSC) sbuild: $(DSC)
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 .PHONY: upload
upload: UPLOAD_DIST ?= $(VERSION_CODENAME)
upload: $(DEB) 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 distclean: clean
clean: clean: