]> git.proxmox.com Git - pve-xtermjs.git/commitdiff
change from submodule to tgz download and update to 3.2.0
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 10 Jan 2018 10:46:51 +0000 (11:46 +0100)
committerDominik Csapak <d.csapak@proxmox.com>
Wed, 11 Apr 2018 12:32:07 +0000 (14:32 +0200)
since xtermjs does not ship the built version anymore in git
(starting with 3.0.0), we change it so that we have a download
target where we download the tarball from npm

.gitmodules
Makefile
src/www/main.js
xtermjs [deleted submodule]

index a22f66bcb186e385154eddb7db25fbeb8e6469e4..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 (file)
@@ -1,3 +0,0 @@
-[submodule "xtermjs"]
-       path = xtermjs
-       url = ../mirror_xterm.js
index f16e4649fee7c43c2e92713599de798192ddfc15..ad348ec9de2e9ce268bdd271a73c3c2870b45d1d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,10 @@
 include defines.mk
 
-XTERMJSDIR=xtermjs
+XTERMJSVER=3.2.0
+XTERMJSTGZ=xterm-${XTERMJSVER}.tgz
+XTERMJSDIR=package
+XTERMDATA = ${XTERMJSDIR}/dist/
+
 SRCDIR=src
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
@@ -13,7 +17,7 @@ all: ${DEB}
 
 .PHONY: deb
 deb: ${DEB}
-${DEB}: | submodule
+${DEB}: ${XTERMDATA}
        rm -rf ${SRCDIR}.tmp
        cp -rpa ${SRCDIR} ${SRCDIR}.tmp
        cp -a debian ${SRCDIR}.tmp/
@@ -23,13 +27,14 @@ ${DEB}: | submodule
        lintian ${DEB}
        @echo ${DEB}
 
-.PHONY: submodule
-submodule:
-       test -f "${XTERMJSDIR}/README.md" || git submodule update --init
+${XTERMDATA}: ${XTERMJSTGZ}
+       rm -rf ${XTTERMDIR}
+       tar -xf ${XTERMJSTGZ}
 
 .PHONY: download
 download ${SRCDIR}:
-       git submodule foreach 'git pull --ff-only origin master'
+       wget https://registry.npmjs.org/xterm/-/${XTERMJSTGZ} -O ${XTERMJSTGZ}.tmp
+       mv ${XTERMJSTGZ}.tmp ${XTERMJSTGZ}
 
 .PHONY: upload
 upload: ${DEB}
@@ -40,7 +45,7 @@ distclean: clean
 
 .PHONY: clean
 clean:
-       rm -rf *~ debian/*~ *_${ARCH}.deb ${SRCDIR}.tmp *_all.deb *.changes *.dsc *.buildinfo
+       rm -rf *~ debian/*~ *_${ARCH}.deb ${SRCDIR}.tmp ${XTERMJSDIR} *_all.deb *.changes *.dsc *.buildinfo
 
 .PHONY: dinstall
 dinstall: deb
index 62ec1c1846dc2cccd39ae3cbe5f7345ac74e58ed..4aa856c0c259d4bf5cbcb872ca1a4ede3e174550 100644 (file)
@@ -65,6 +65,7 @@ function updateState(newState, msg) {
 
 var terminalContainer = document.getElementById('terminal-container');
 document.getElementById('status_bar').addEventListener('click', hideMsg);
+Terminal.applyAddon(fit);
 
 createTerminal();
 
diff --git a/xtermjs b/xtermjs
deleted file mode 160000 (submodule)
index ea07bf8..0000000
--- a/xtermjs
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit ea07bf8f694a6e9714779b19c174e26162c39196