aboutsummaryrefslogtreecommitdiff
path: root/installer/install-cobol-language-support.sh
diff options
context:
space:
mode:
Diffstat (limited to 'installer/install-cobol-language-support.sh')
-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