]> git.proxmox.com Git - spiceterm.git/commitdiff
add upload target
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 10 Dec 2013 11:21:37 +0000 (12:21 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 10 Dec 2013 11:21:37 +0000 (12:21 +0100)
Makefile

index 9575b5b103c762ce2ab3579411f371461d2ead4d..9d5c52d7090cd3e5506a1e62e9179593519e66bd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -57,6 +57,17 @@ ${DEB} deb:
 dinstall: ${DEB}
        dpkg -i ${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
+
 .PHONY: test
 test: spiceterm
        ./spiceterm --noauth --keymap de & remote-viewer spice://localhost?tls-port=5900