mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-12-27 21:07:39 +00:00
35 lines
858 B
Bash
35 lines
858 B
Bash
#! /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'
|
|
# Ensure python support is in nvim
|
|
sudo_package 'python-dev python-pip python3-dev python3-pip'
|
|
;;
|
|
esac
|
|
|
|
sudo pip install neovim
|
|
if command_exist pip3 ; then
|
|
sudo pip3 install neovim
|
|
fi
|
|
|
|
local neovim_dir=$WORKSPACE/neovim
|
|
|
|
if [ ! -d $neovim_dir ]; then
|
|
log "Cloning neovim"
|
|
git clone https://github.com/neovim/neovim $neovim_dir
|
|
else
|
|
(cd $neovim_dir && git pull)
|
|
fi
|
|
|
|
(cd $neovim_dir && make && sudo make install)
|