2018-01-27 14:29:49 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
git submodule update
|
|
|
|
|
|
|
|
pushd NvimView/neovim
|
2018-05-19 23:33:43 +03:00
|
|
|
major=$(grep -e "set(NVIM_VERSION_MAJOR" CMakeLists.txt | gsed -E "s/.*([0-9]+).*/\1/")
|
|
|
|
minor=$(grep -e "set(NVIM_VERSION_MINOR" CMakeLists.txt | gsed -E "s/.*([0-9]+).*/\1/")
|
|
|
|
patch=$(grep -e "set(NVIM_VERSION_PATCH" CMakeLists.txt | gsed -E "s/.*([0-9]+).*/\1/")
|
|
|
|
prerelease=$(grep -e "set(NVIM_VERSION_PRERELEASE" CMakeLists.txt | gsed -E "s/.*\(.*\"(.*)\"\).*/\1/")
|
|
|
|
nvim_version="v$major.$minor.$patch$prerelease"
|
|
|
|
echo $nvim_version
|
|
|
|
|
|
|
|
../../bin/build_libnvim.sh
|
2018-01-27 14:29:49 +03:00
|
|
|
popd
|
|
|
|
|
|
|
|
pushd NvimView
|
2018-01-27 14:33:08 +03:00
|
|
|
VERSION=${nvim_version} ../bin/generate_autocmds.py
|
2018-01-27 14:29:49 +03:00
|
|
|
popd
|
|
|
|
|
|
|
|
echo "############## Successfully generated sources."
|