diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-28 21:02:27 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-28 21:02:27 +0900 |
commit | bab2a078d67caf9e62ea2232b2581cb9197a2579 (patch) | |
tree | 70180653a493ecb2d4fe38287eab4fafa7fe1791 /installer/install-texlab.sh | |
parent | 3f2113c05c219460616a7cb2139d372693c08e09 (diff) | |
download | vim-lsp-settings-bab2a078d67caf9e62ea2232b2581cb9197a2579.tar.gz vim-lsp-settings-bab2a078d67caf9e62ea2232b2581cb9197a2579.tar.bz2 vim-lsp-settings-bab2a078d67caf9e62ea2232b2581cb9197a2579.zip |
Add texlab
Diffstat (limited to 'installer/install-texlab.sh')
-rw-r--r-- | installer/install-texlab.sh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/installer/install-texlab.sh b/installer/install-texlab.sh new file mode 100644 index 0000000..a619ea4 --- /dev/null +++ b/installer/install-texlab.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +set -e + +cd $(dirname $0) + +server_dir="../servers/texlab" +[ -d $server_dir ] && rm -rf $server_dir +mkdir $server_dir && cd $server_dir + +os=$(uname -s | tr "[:upper:]" "[:lower:]") + +case $os in +linux) ;; +darwin) + os="macos" + ;; +*) + printf "%s doesn't supported by bash installer" "$os" + exit 1 + ;; +esac + +url="https://github.com/latex-lsp/texlab/releases/download/v1.8.0/texlab-x86_64-$os.tar.gz" +curl -LO "$url" +tar xzvf texlab-x86_64-$os.tar.gz |