]> git.proxmox.com Git - proxmox-backup-restore-image.git/commitdiff
buildsys: derive upload dist automatically
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 30 May 2023 08:06:25 +0000 (10:06 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 30 May 2023 08:09:22 +0000 (10:09 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index e0d0682ae7b9ad312c303e491cb310d0d8bda146..52a06c09e625ad920e5eec412ce989ff02ec86fa 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -56,8 +56,9 @@ dinstall: deb
        dpkg -i $(DEB) $(DEB_DBG)
 
 .PHONY: upload
+upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
 upload: $(DEB)
-       tar cf - $(DEB) $(DEB_DBG) | ssh -X repoman@repo.proxmox.com upload --product pve --dist bullseye
+       tar cf - $(DEB) $(DEB_DBG) | ssh -X repoman@repo.proxmox.com upload --product pve --dist $(UPLOAD_DIST)
 
 .PHONY: clean
 clean: