wip: Update building of vim and neovim

This commit is contained in:
ViViDboarder 2019-11-01 17:42:14 -07:00
parent 46dcd759c1
commit b774c2caae
2 changed files with 24 additions and 22 deletions

View File

@ -28,7 +28,7 @@ if [ ! -d $neovim_dir ]; then
log "Cloning neovim" log "Cloning neovim"
git clone https://github.com/neovim/neovim $neovim_dir git clone https://github.com/neovim/neovim $neovim_dir
else else
(cd $neovim_dir && git pull) (cd $neovim_dir && git fetch)
fi fi
(cd $neovim_dir && make && sudo make install) (cd $neovim_dir && git checkout stable && make && sudo make install)

View File

@ -10,28 +10,30 @@ fi
# Build latest vim # Build latest vim
if [ ! -d $vim_dir ]; then if [ ! -d $vim_dir ]; then
hg clone https://vim.googlecode.com/ $vim_dir log "Cloning vim"
git clone https://github.com/vim/vim.git $vim_dir
else
(cd $vim_dir && git fetch)
fi fi
# Go to workspace function conf_build_and_install() {
cd $vim_dir # Get latest tagged source code
latest_tag=`git describe --tags`
git checkout $latest_tag
# Use latest tagged source code # Configure vim with ruby, python and GTK
hg update -r 'max(tagged())' ./configure --with-features=huge \
# Configure vim with ruby, python and GTK --enable-pythoninterp \
./configure --with-features=huge \ --enable-rubyinterp \
--enable-pythoninterp \ --enable-gui=gtk2
--enable-rubyinterp \
--enable-gui=gtk2
# Compile # Compile
make make
# Install newly compiled vim # Install newly compiled vim
sudo make install sudo make install
# Link vi to vim out of convenience # Link vi to vim out of convenience
vim_path=$(which vim) vim_path=$(which vim)
sudo ln -s $vim_path ${vim_path:0:(-1)} sudo ln -s $vim_path ${vim_path:0:(-1)}
}
# Go back to previous directory
cd $ROOT_DIR
(cd $vim_dir && conf_build_and_install)