]> git.proxmox.com Git - qemu-server.git/commitdiff
new make upload target
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 28 Jun 2016 07:16:11 +0000 (09:16 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 28 Jun 2016 07:16:11 +0000 (09:16 +0200)
Makefile

index 3bc0047003c0f60f8a56e20fb6341968acdca178..1502cce643d0e1c077cacfa1cfedc225347172db 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -109,13 +109,7 @@ deb ${DEB}: ${PKGSOURCES}
 
 .PHONY: upload
 upload: ${DEB}
-       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw 
-       mkdir -p /pve/${RELEASE}/extra
-       rm -rf /pve/${RELEASE}/extra/${PACKAGE}_*.deb
-       rm -rf /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: