aboutsummaryrefslogtreecommitdiff
path: root/installer/install-omnisharp-node-client.sh
blob: 1634fdb3cd4657b133b97214a5164f1f59e8d624 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

set -e

cd $(dirname $0)
[ -d ../servers/omnisharp-node-client ] && rm -rf ../servers/omnisharp-node-client
mkdir ../servers/omnisharp-node-client
cd ../servers/omnisharp-node-client
git clone https://github.com/OmniSharp/omnisharp-node-client .
npm install
npm build

cat <<EOF > omnisharp-node-client
#!/bin/sh

DIR=\$(cd \$(dirname \$0); pwd)
node \$DIR/languageserver/server.js
EOF

chmod +x omnisharp-node-client