diff options
author | Mitsuo Heijo <mitsuo.heijo@gmail.com> | 2019-12-26 01:32:29 +0900 |
---|---|---|
committer | Mitsuo Heijo <mitsuo.heijo@gmail.com> | 2019-12-26 01:32:29 +0900 |
commit | 6fa5eb358c24dc7e0838e790ec0b45141d56a909 (patch) | |
tree | 9e78fb08151059183f9fd7930ebf0d41a7487aea /installer/install-cobol-language-support.sh | |
parent | 0bc757a306ec6a34c495341fe2d63c867aaa9831 (diff) | |
download | vim-lsp-settings-6fa5eb358c24dc7e0838e790ec0b45141d56a909.tar.gz vim-lsp-settings-6fa5eb358c24dc7e0838e790ec0b45141d56a909.tar.bz2 vim-lsp-settings-6fa5eb358c24dc7e0838e790ec0b45141d56a909.zip |
feature: support swift and cobol
Diffstat (limited to 'installer/install-cobol-language-support.sh')
-rwxr-xr-x | installer/install-cobol-language-support.sh | 22 |
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 |