use new repoman for upload target
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 9 Aug 2016 06:08:59 +0000 (08:08 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 9 Aug 2016 06:08:59 +0000 (08:08 +0200)
Makefile

index 9c6d1647028ac89e25dbf5f04aa4e0b81972bdc6..260995d081ec68b6cdfecccf03e454868ac66566 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -256,14 +256,7 @@ ${GEN_DEB} ${DOC_DEB} ${MEDIAWIKI_DEB}: index.html ${INDEX_INCLUDES} ${WIKI_IMPO
 
 .PHONY: upload
 upload: ${GEN_DEB} ${DOC_DEB} ${MEDIAWIKI_DEB}
-       umount /pve/${DOCRELEASE}; mount /pve/${DOCRELEASE} -o rw
-       mkdir -p /pve/${DOCRELEASE}/extra
-       rm -f /pve/${DOCRELEASE}/extra/${GEN_PACKAGE}_*.deb
-       rm -f /pve/${DOCRELEASE}/extra/${DOC_PACKAGE}_*.deb
-       rm -f /pve/${DOCRELEASE}/extra/Packages*
-       cp ${GEN_DEB} ${DOC_DEB} ${MEDIAWIKI_DEB} /pve/${DOCRELEASE}/extra
-       cd /pve/${DOCRELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
-       umount /pve/${DOCRELEASE}; mount /pve/${DOCRELEASE} -o ro
+       tar cf - ${GEN_DEB} ${DOC_DEB} ${MEDIAWIKI_DEB} | ssh repoman@repo.proxmox.com upload
 
 .PHONY: update
 update: clean