diff options
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 |