mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-24 04:36:28 +00:00
wip: Update building of vim and neovim
This commit is contained in:
parent
46dcd759c1
commit
b774c2caae
@ -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)
|
||||||
|
@ -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
|
|
||||||
./configure --with-features=huge \
|
|
||||||
--enable-pythoninterp \
|
--enable-pythoninterp \
|
||||||
--enable-rubyinterp \
|
--enable-rubyinterp \
|
||||||
--enable-gui=gtk2
|
--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)
|
||||||
|
Loading…
Reference in New Issue
Block a user