aboutsummaryrefslogtreecommitdiff
path: root/installer
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2019-12-26 01:40:37 +0900
committerGitHub <noreply@github.com>2019-12-26 01:40:37 +0900
commitf668cd84c7055f7a27836df6f49c652bfc60f8bf (patch)
tree8bdd2bbdebf81fb9e248ef2b3a775edfeddc902d /installer
parent572f89e42300f8b503c59a225aecf53a2849c955 (diff)
parent6fa5eb358c24dc7e0838e790ec0b45141d56a909 (diff)
downloadvim-lsp-settings-f668cd84c7055f7a27836df6f49c652bfc60f8bf.tar.gz
vim-lsp-settings-f668cd84c7055f7a27836df6f49c652bfc60f8bf.tar.bz2
vim-lsp-settings-f668cd84c7055f7a27836df6f49c652bfc60f8bf.zip
Merge pull request #23 from johejo/feature/support_swift_and_cobol
feature: support swift and cobol
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/install-cobol-language-support.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/installer/install-cobol-language-support.sh b/installer/install-cobol-language-support.sh
new file mode 100755
index 0000000..f87e1c3
--- /dev/null
+++ b/installer/install-cobol-language-support.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+set -e
+
+cd $(dirname $0)
+
+server_dir="../servers/cobol-language-support"
+[ -d "$server_dir" ] && rm -rf "$server_dir"
+mkdir "$server_dir" && cd "$server_dir"
+
+version="0.9.1"
+url="https://github.com/eclipse/che-che4z-lsp-for-cobol/releases/download/$version/cobol-language-support-$version.vsix"
+curl -LO "$url"
+unzip "cobol-language-support-$version.vsix"
+
+cat <<EOF >./cobol-language-support
+#!/bin/sh
+DIR=\$(cd \$(dirname \$0); pwd)
+java "-Dline.speparator=\r\n" -jar "\$DIR/extension/server/lsp-service-cobol-$version.jar" pipeEnabled
+EOF
+
+chmod +x ./cobol-language-support