]> git.proxmox.com Git - novnc-pve.git/blobdiff - Makefile
bump version to 0.5-1
[novnc-pve.git] / Makefile
index 040eeaa30ac0f241a188c5a962ab84599908bd11..93066d3a1f2208ee0778c9c438a0ba1d733450d0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,11 +1,11 @@
-RELEASE=3.2
+RELEASE=4.0
 
 PACKAGE=novnc-pve
 PKGREL=1
 
 NOVNCDIR=novnc
 NOVNCSRC=${NOVNCDIR}.tgz
-NOVNCVER=0.4
+NOVNCVER=0.5
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 GITVERSION:=$(shell cat .git/refs/heads/master)
@@ -22,8 +22,8 @@ dinstall: deb
 deb ${DEB}: ${TARSRC}
        rm -rf ${NOVNCDIR}
        tar xf ${NOVNCSRC}
-       mv ${NOVNCDIR}/debian ${NOVNCDIR}/debian.org
        cp -a debian ${NOVNCDIR}/debian
+       cp ${NOVNCDIR}/include/ui.js ${NOVNCDIR}/pveui.js
        # fix file permissions
        chmod 0644 ${NOVNCDIR}/include/jsunzip.js
        echo "git clone git://git.proxmox.com/git/novnc-pve.git\\ngit checkout ${GITVERSION}" > ${NOVNCDIR}/debian/SOURCE
@@ -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