From 2e0e592ea29ea7d2da333824a93aa543a6f7f390 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sat, 14 Sep 2019 17:09:29 -0700 Subject: release.sh: bump nvim.appdata.xml --- scripts/release.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'scripts') diff --git a/scripts/release.sh b/scripts/release.sh index a51a6666f5..29d61370ce 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -26,6 +26,7 @@ __sed=$( [ "$(uname)" = Darwin ] && echo 'sed -E' || echo 'sed -r' ) cd "$(git rev-parse --show-toplevel)" +__DATE=$(date +'%Y-%m-%d') __LAST_TAG=$(git describe --abbrev=0) [ -z "$__LAST_TAG" ] && { echo 'ERROR: no tag found'; exit 1; } __VERSION_MAJOR=$(grep 'set(NVIM_VERSION_MAJOR' CMakeLists.txt\ @@ -75,13 +76,15 @@ _do_release_commit() { _do_bump_commit() { $__sed -i.bk 's/(NVIM_VERSION_PRERELEASE) ""/\1 "-dev"/' CMakeLists.txt $__sed -i.bk 's/set\((NVIM_VERSION_PATCH) [[:digit:]]/set(\1 ?/' CMakeLists.txt - nvim +'/NVIM_VERSION' +10new +'exe "norm! iUpdate version numbers!!!\"' \ - +'norm! 10.' CMakeLists.txt - - git add CMakeLists.txt + $__sed -i.bk 's,(),\1\ + ,' runtime/nvim.appdata.xml + rm CMakeLists.txt.bk + rm runtime/nvim.appdata.xml.bk + nvim +'/NVIM_VERSION' +1new +'exe "norm! iUpdate version numbers!!!\"' \ + -O CMakeLists.txt runtime/nvim.appdata.xml + + git add CMakeLists.txt runtime/nvim.appdata.xml git commit -m "$__BUMP_MSG" - - rm CMakeLists.txt.bk || true } if ! test "$ARG1" = '--only-bump' ; then @@ -91,6 +94,7 @@ _do_bump_commit echo " Next steps: - Double-check NVIM_VERSION_* in CMakeLists.txt + - Double-check runtime/nvim.appdata.xml - Push the tag: git push --follow-tags - Update the 'stable' tag: -- cgit