aboutsummaryrefslogtreecommitdiff
path: root/installer
diff options
context:
space:
mode:
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/install-lsp4xml.sh23
-rwxr-xr-xinstaller/install-yaml-language-server.sh17
2 files changed, 40 insertions, 0 deletions
diff --git a/installer/install-lsp4xml.sh b/installer/install-lsp4xml.sh
new file mode 100755
index 0000000..12a330c
--- /dev/null
+++ b/installer/install-lsp4xml.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+
+set -e
+
+cd $(dirname $0)
+
+server_dir="../servers/lsp4xml"
+[ -d $server_dir ] && rm -rf $server_dir
+mkdir $server_dir && cd $server_dir
+
+version="0.9.1"
+url=https://dl.bintray.com/lsp4xml/releases/org/lsp4xml/org.eclipse.lsp4xml/${version}/org.eclipse.lsp4xml-${version}-uber.jar
+
+curl -LO "$url"
+
+cat <<EOF >lsp4xml
+#!/bin/sh
+
+DIR=\$(cd \$(dirname \$0); pwd)
+java -jar \$DIR/org.eclipse.lsp4xml-${version}-uber.jar
+EOF
+
+chmod +x lsp4xml
diff --git a/installer/install-yaml-language-server.sh b/installer/install-yaml-language-server.sh
new file mode 100755
index 0000000..015f953
--- /dev/null
+++ b/installer/install-yaml-language-server.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+set -e
+
+cd $(dirname $0)
+
+server_dir="../servers/yaml-language-server"
+[ -d $server_dir ] && rm -rf $server_dir
+mkdir $server_dir && cd $server_dir
+
+npm init -y
+cat <<EOF >package.json
+{"name": ""}
+EOF
+npm install yaml-language-server
+
+ln -s ./node_modules/.bin/yaml-language-server .