aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2020-01-22 08:47:30 +0900
committerGitHub <noreply@github.com>2020-01-22 08:47:30 +0900
commit88adbbc7dddf2abe78d072b72e1b0f75ee81ae80 (patch)
treedb67dfda026d088102a8a6bc1961812799853499
parent4377a56f2a9786b42d9f95168699d82bb141a193 (diff)
parent3499530acfddce32c6987536e842bc430e00dcc4 (diff)
downloadvim-lsp-settings-88adbbc7dddf2abe78d072b72e1b0f75ee81ae80.tar.gz
vim-lsp-settings-88adbbc7dddf2abe78d072b72e1b0f75ee81ae80.tar.bz2
vim-lsp-settings-88adbbc7dddf2abe78d072b72e1b0f75ee81ae80.zip
Merge pull request #94 from pojiro/add-linuxmint-support-to-clangd-installer
Add Linux Mint support to clangd installer
-rwxr-xr-xinstaller/install-clangd.sh28
1 files changed, 22 insertions, 6 deletions
diff --git a/installer/install-clangd.sh b/installer/install-clangd.sh
index 3d1cfd0..278792f 100755
--- a/installer/install-clangd.sh
+++ b/installer/install-clangd.sh
@@ -13,12 +13,28 @@ case $os in
;;
esac
-# Check Ubuntu version
-ubuntu_version=$(lsb_release -a 2>&1 | grep 'Release' | awk '{print $2}')
-
-case $ubuntu_version in
- 14.04|16.04|18.04)
- platform="linux-gnu-ubuntu-$ubuntu_version"
+distributor_id=$(lsb_release -a 2>&1 | grep 'Distributor ID' | awk '{print $3}')
+case $distributor_id in
+ # Check Ubuntu version
+ Ubuntu)
+ ubuntu_version=$(lsb_release -a 2>&1 | grep 'Release' | awk '{print $2}')
+ case $ubuntu_version in
+ 14.04|16.04|18.04)
+ platform="linux-gnu-ubuntu-$ubuntu_version"
+ ;;
+ esac
+ ;;
+ # Check LinuxMint version
+ LinuxMint)
+ linuxmint_version=$(lsb_release -a 2>&1 | grep 'Release' | awk '{print $2}')
+ case $linuxmint_version in
+ 19|19.1|19.2|19.3)
+ platform="linux-gnu-ubuntu-18.04"
+ ;;
+ 18|18.1|18.2|18.3)
+ platform="linux-gnu-ubuntu-16.04"
+ ;;
+ esac
;;
esac