]> git.proxmox.com Git - proxmox-i18n.git/commitdiff
buildsys: derive upload dist automatically
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 16 May 2023 15:05:55 +0000 (17:05 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 16 May 2023 16:09:00 +0000 (18:09 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index 73004faa50ff9960e24c96ffebe5ac47b8a456d3..b8a880b700bea6a97fb4194e91dbfb57292a3ebc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -122,11 +122,12 @@ clean:
        rm -rf $(DEB_SOURCE)-[0-9]*/ *.po.tmp *.js.tmp *.deb *.buildinfo *.changes *.js messages.pot
 
 .PHONY: upload-pve upload-pmg upload-pbs upload
+upload-%: UPLOAD_DIST ?= $(DEB_DISTRIBUTION)
 upload-pve: ${PVE_I18N_DEB}
-       tar cf - $^|ssh -X repoman@repo.proxmox.com -- upload --product pve --dist bullseye
+       tar cf - $^|ssh -X repoman@repo.proxmox.com -- upload --product pve --dist $(UPLOAD_DIST)
 upload-pmg: ${PMG_I18N_DEB}
-       tar cf - $^|ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist bullseye
+       tar cf - $^|ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist $(UPLOAD_DIST)
 upload-pbs: ${PBS_I18N_DEB}
-       tar cf - $^|ssh -X repoman@repo.proxmox.com -- upload --product pbs --dist bullseye
+       tar cf - $^|ssh -X repoman@repo.proxmox.com -- upload --product pbs --dist $(UPLOAD_DIST)
 
 upload: upload-pve upload-pmg upload-pbs