mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-17 12:00:29 +01:00
23 lines
591 B
Bash
Executable File
23 lines
591 B
Bash
Executable File
#!/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
|