diff options
author | James McCoy <jamessan@jamessan.com> | 2020-12-06 22:31:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-06 22:31:30 -0500 |
commit | ee5ece084cf76fc90f0bd3aa4e0ddeaaca0bc51a (patch) | |
tree | 4f72cb8a48460dded135d6678483a8aa1a6bdf78 /scripts/update_version_stamp.lua | |
parent | 7477703586af3710584888b197d84a0938a27fe9 (diff) | |
parent | b32124fce260f1132dcda7699905613bea2e888f (diff) | |
download | rneovim-ee5ece084cf76fc90f0bd3aa4e0ddeaaca0bc51a.tar.gz rneovim-ee5ece084cf76fc90f0bd3aa4e0ddeaaca0bc51a.tar.bz2 rneovim-ee5ece084cf76fc90f0bd3aa4e0ddeaaca0bc51a.zip |
Merge pull request #13471 from jamessan/release-fixes
Diffstat (limited to 'scripts/update_version_stamp.lua')
-rwxr-xr-x | scripts/update_version_stamp.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/scripts/update_version_stamp.lua b/scripts/update_version_stamp.lua index 11b521fab6..0342e08f31 100755 --- a/scripts/update_version_stamp.lua +++ b/scripts/update_version_stamp.lua @@ -35,11 +35,10 @@ if not described then end -- `git describe` annotates the most recent tagged release; for pre-release --- builds we must replace that with the unreleased version. -local with_prefix = described:gsub("^v%d+%.%d+%.%d+", prefix) -if described == with_prefix then - -- Prepend the prefix always, e.g. with "nightly-12208-g4041b62b9". - with_prefix = prefix .. "-" .. described +-- builds we append that to the dev version +local with_prefix = prefix +if prefix:match('-dev$') ~= nil then + with_prefix = prefix .. '+' .. described:gsub('^v%d+%.%d+%.%d+-', '') end -- Read existing include file. |