Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
Installing universal-ctags is preferred on Debian-based systems.
  • Loading branch information
wangling12 authored May 7, 2021
1 parent 1cce1d3 commit 5ad905e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -298,8 +298,9 @@ function install_prepare_software_on_ubuntu()
sudo apt-get install -y cmake
fi

sudo apt-get install -y exuberant-ctags build-essential python python-dev python3-dev fontconfig libfile-next-perl ack-grep git

sudo apt-get install -y build-essential python python-dev python3-dev fontconfig libfile-next-perl ack-grep git
sudo apt-get install -y universal-ctags || sudo apt-get install -y exuberant-ctags

if [ $version -ge 18 ];then
sudo apt-get install -y vim
else
Expand All @@ -311,15 +312,17 @@ function install_prepare_software_on_ubuntu()
function install_prepare_software_on_ubuntu_like()
{
sudo apt-get update
sudo apt-get install -y cmake exuberant-ctags build-essential python python-dev python3-dev fontconfig libfile-next-perl ack-grep git
sudo apt-get install -y cmake build-essential python python-dev python3-dev fontconfig libfile-next-perl ack-grep git
sudo apt-get install -y universal-ctags || sudo apt-get install -y exuberant-ctags
compile_vim_on_ubuntu
}

# 安装debian必备软件
function install_prepare_software_on_debian()
{
sudo apt-get update
sudo apt-get install -y cmake exuberant-ctags build-essential python python-dev python3-dev fontconfig libfile-next-perl ack git
sudo apt-get install -y cmake build-essential python python-dev python3-dev fontconfig libfile-next-perl ack git
sudo apt-get install -y universal-ctags || sudo apt-get install -y exuberant-ctags
compile_vim_on_debian
}

Expand Down

0 comments on commit 5ad905e

Please sign in to comment.