]> git.proxmox.com Git - novnc-pve.git/commitdiff
add upload/distclean target to makefile
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 13 Jun 2014 07:38:05 +0000 (09:38 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 13 Jun 2014 07:38:05 +0000 (09:38 +0200)
Makefile

index 040eeaa30ac0f241a188c5a962ab84599908bd11..486853528461fe04af6fec9bf0af2d649ed4ebd7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -36,6 +36,19 @@ download:
        git clone git://github.com/kanaka/noVNC ${NOVNCDIR}
        tar czf ${NOVNCSRC} ${NOVNCDIR}
 
+.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: distclean
+distclean: clean
+
 .PHONY: clean
 clean:
        rm -rf *~ debian/*~ *_${ARCH}.deb *_all.deb *.changes *.dsc novnc