buildsys: derive upload dist automatically

taken from pve-common commit:
0bc017209886ee52a5418bcb7921324836cc869b

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
This commit is contained in:
Stoiko Ivanov 2023-05-24 12:08:54 +02:00
parent a6b0921e08
commit 9d93a1336d

View File

@ -42,9 +42,10 @@ ${DEB}: ${OPKGNAME}/Xdgmime.xs ${BUILDSRC}
cd ${BUILDSRC}; dpkg-buildpackage -b -us -uc
lintian ${DEB}
.PHONY: upload
.phony: upload
upload: UPLOAD_DIST ?= ${DEB_DISTRIBUTION}
upload: ${DEB}
tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist stretch
tar cf - ${DEB} | ssh -X repoman@repo.proxmox.com -- upload --product pmg --dist ${UPLOAD_DIST}
CLEANFILES = *~ debian/*~ *.deb ${BUILDSRC} libxdgmime-perl* *.buildinfo *.build *.dsc *tar.?z