]> git.proxmox.com Git - novnc-pve.git/blobdiff - Makefile
generate index.html.tpl from vnc.html
[novnc-pve.git] / Makefile
index 02b48b57da4ef8fc348ea50fe22710128444fd25..9ddde443ca5c578fb28ae663c859308639d571cc 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
-RELEASE=4.1
+RELEASE=4.2
 
 PACKAGE=novnc-pve
-PKGREL=6
+PKGREL=8
 
 NOVNCDIR=novnc
 NOVNCSRC=${NOVNCDIR}.tgz
@@ -19,11 +19,13 @@ dinstall: deb
        dpkg -i ${DEB}
 
 .PHONY: deb
-deb ${DEB}: ${TARSRC}
+deb: ${DEB}
+${DEB}: ${TARSRC}
        rm -rf ${NOVNCDIR}
        tar xf ${NOVNCSRC}
        cp -a debian ${NOVNCDIR}/debian
        cp ${NOVNCDIR}/include/ui.js ${NOVNCDIR}/pveui.js
+       cp ${NOVNCDIR}/vnc.html ${NOVNCDIR}/index.html.tpl
        # 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
@@ -39,13 +41,7 @@ download:
 
 .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
+       tar cf - ${DEB}|ssh repoman@repo.proxmox.com upload
 
 .PHONY: distclean
 distclean: clean