aboutsummaryrefslogtreecommitdiff
path: root/installer/install-lsp4xml.sh
blob: 12a330cc46c3b9eadfc4859e256f205c566bbde9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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