aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2019-09-14 17:09:29 -0700
committerJustin M. Keyes <justinkz@gmail.com>2019-09-14 17:54:16 -0700
commit2e0e592ea29ea7d2da333824a93aa543a6f7f390 (patch)
tree588334560637a34638ef10c832fdf004ef8939ae
parentdb550ac995652133fed0d16964f2cef2c49dbc82 (diff)
downloadrneovim-2e0e592ea29ea7d2da333824a93aa543a6f7f390.tar.gz
rneovim-2e0e592ea29ea7d2da333824a93aa543a6f7f390.tar.bz2
rneovim-2e0e592ea29ea7d2da333824a93aa543a6f7f390.zip
release.sh: bump nvim.appdata.xml
-rwxr-xr-xscripts/release.sh16
1 files changed, 10 insertions, 6 deletions
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!!!\<CR>"' \
- +'norm! 10.' CMakeLists.txt
-
- git add CMakeLists.txt
+ $__sed -i.bk 's,(<releases>),\1\
+ <release date="'"${__DATE}"'" version="xxx"/>,' runtime/nvim.appdata.xml
+ rm CMakeLists.txt.bk
+ rm runtime/nvim.appdata.xml.bk
+ nvim +'/NVIM_VERSION' +1new +'exe "norm! iUpdate version numbers!!!\<CR>"' \
+ -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: