build: use repoman for uploading
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 3 Feb 2017 08:11:58 +0000 (09:11 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Fri, 3 Feb 2017 08:11:58 +0000 (09:11 +0100)
Makefile

index 40e0246..15181e4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -104,13 +104,7 @@ ${DEB} deb:
 
 .PHONY: upload
 upload: ${DEB}
-       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw 
-       mkdir -p /pve/${RELEASE}/extra
-       rm -f /pve/${RELEASE}/extra/${PACKAGE}_*.deb
-       rm -f /pve/${RELEASE}/extra/Packages*
-       cp ${DEB} /pve/${RELEASE}/extra
-       cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
-       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
+       tar cf - ${DEB} | ssh repoman@repo.proxmox.com upload
 
 .PHONY: clean
 clean: