2015-06-03 20:53:41 +00:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
# in common
|
|
|
|
# sudo_package 'libtool automake cmake'
|
|
|
|
|
|
|
|
case "$PACKAGE_MANAGER" in
|
|
|
|
"port")
|
|
|
|
sudo_package 'libtool autoconf automake cmake pkgconfig gettext ninja'
|
|
|
|
;;
|
|
|
|
"brew")
|
|
|
|
sudo_package 'libtool automake cmake pkg-config gettext ninja'
|
|
|
|
;;
|
|
|
|
"apt-get")
|
|
|
|
sudo_package 'libtool libtool-bin autoconf automake cmake g++ pkg-config unzip ninja-build'
|
2015-08-14 05:37:24 +00:00
|
|
|
# Ensure python support is in nvim
|
|
|
|
sudo_package 'python-dev python-pip python3-dev python3-pip'
|
2015-06-03 20:53:41 +00:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2015-08-14 05:37:24 +00:00
|
|
|
sudo pip install neovim
|
|
|
|
if command_exist pip3 ; then
|
|
|
|
sudo pip3 install neovim
|
|
|
|
fi
|
|
|
|
|
2019-11-13 01:59:41 +00:00
|
|
|
neovim_dir="$WORKSPACE/neovim"
|
2015-06-03 20:53:41 +00:00
|
|
|
|
2019-11-13 01:59:41 +00:00
|
|
|
if [ ! -d "$neovim_dir" ]; then
|
2015-06-03 20:53:41 +00:00
|
|
|
log "Cloning neovim"
|
2019-11-13 01:59:41 +00:00
|
|
|
git clone https://github.com/neovim/neovim "$neovim_dir"
|
2015-06-03 20:53:41 +00:00
|
|
|
else
|
2019-11-13 01:59:41 +00:00
|
|
|
(cd "$neovim_dir" && git fetch)
|
2015-06-03 20:53:41 +00:00
|
|
|
fi
|
|
|
|
|
2019-11-13 01:59:41 +00:00
|
|
|
(cd "$neovim_dir" && git checkout stable && make && sudo make install)
|