mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-19 19:51:35 +03:00
34 lines
601 B
Bash
Executable File
34 lines
601 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
current_neovim_branch=$1
|
|
|
|
git submodule update
|
|
|
|
pushd NvimView/neovim
|
|
git fetch
|
|
make distclean
|
|
mv local.mk local.mk.bak || true
|
|
git checkout "origin/last-merge-${current_neovim_branch}"
|
|
make
|
|
popd
|
|
|
|
nvim_bin_path="./NvimView/neovim/build/bin/nvim"
|
|
nvim_version=$(${nvim_bin_path} --version | head -1 | cut -d' ' -f2)
|
|
|
|
pushd NvimView
|
|
VERSION=${nvim_version} ../bin/generate_autocmds.py
|
|
|
|
pushd neovim
|
|
rm -rf build
|
|
make clean
|
|
git reset --hard HEAD
|
|
git checkout ${current_neovim_branch}
|
|
mv local.mk.bak local.mk || true
|
|
popd
|
|
|
|
popd
|
|
|
|
echo "############## Successfully generated sources."
|