]> git.proxmox.com Git - pve-sheepdog.git/commitdiff
add upload target
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 9 Jul 2012 12:37:35 +0000 (14:37 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 9 Jul 2012 12:37:35 +0000 (14:37 +0200)
Makefile

index b631a4cf08e5dc49c876f5ecf05bbd537327ac61..3b4194edee632af2a4038ecdd7a0d22fbca576ed 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -27,6 +27,16 @@ ${SDSRC} download:
        rm -rf ${SDDIR}
        mv ${SDSRC}.tmp ${SDSRC}
 
+.PHONY: upload
+upload: ${DEB}
+       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
+       mkdir -p /pve/${RELEASE}/extra
+       rm -f /pve/${RELEASE}/extra/sheepdog*.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
+
 clean:
 distclean: clean
        rm -rf sheepdog.git