aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2024-05-15 23:28:20 +0200
committerJustin M. Keyes <justinkz@gmail.com>2024-05-16 00:19:17 +0200
commit54044e6dce2f2a0f6785481ae179ffcfd5c7acf3 (patch)
tree8b97c2b97a71f83546e6c828e025d14760f6b489
parent01b6bff7e9bc751be20ce7bb68e7ebe3037441de (diff)
downloadrneovim-54044e6dce2f2a0f6785481ae179ffcfd5c7acf3.tar.gz
rneovim-54044e6dce2f2a0f6785481ae179ffcfd5c7acf3.tar.bz2
rneovim-54044e6dce2f2a0f6785481ae179ffcfd5c7acf3.zip
fix(release.sh): ze version is too big
-rwxr-xr-xscripts/release.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/release.sh b/scripts/release.sh
index f798b81d6a..f63c199fc9 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -31,14 +31,14 @@ __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\
- |$__sed 's/.*NVIM_VERSION_MAJOR ([[:digit:]]).*/\1/')
+ |$__sed 's/.*NVIM_VERSION_MAJOR ([[:digit:]]+).*/\1/')
__VERSION_MINOR=$(grep 'set(NVIM_VERSION_MINOR' CMakeLists.txt\
- |$__sed 's/.*NVIM_VERSION_MINOR ([[:digit:]]).*/\1/')
+ |$__sed 's/.*NVIM_VERSION_MINOR ([[:digit:]]+).*/\1/')
__VERSION_PATCH=$(grep 'set(NVIM_VERSION_PATCH' CMakeLists.txt\
- |$__sed 's/.*NVIM_VERSION_PATCH ([[:digit:]]).*/\1/')
+ |$__sed 's/.*NVIM_VERSION_PATCH ([[:digit:]]+).*/\1/')
__VERSION="${__VERSION_MAJOR}.${__VERSION_MINOR}.${__VERSION_PATCH}"
__API_LEVEL=$(grep 'set(NVIM_API_LEVEL ' CMakeLists.txt\
- |$__sed 's/.*NVIM_API_LEVEL ([[:digit:]]).*/\1/')
+ |$__sed 's/.*NVIM_API_LEVEL ([[:digit:]]+).*/\1/')
{ [ -z "$__VERSION_MAJOR" ] || [ -z "$__VERSION_MINOR" ] || [ -z "$__VERSION_PATCH" ]; } \
&& { echo "ERROR: version parse failed: '${__VERSION}'"; exit 1; }
__RELEASE_MSG="NVIM v${__VERSION}