File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -189,10 +189,10 @@ endif
189189TRAVIS_BRANCH? =$(shell git symbolic-ref --short HEAD --quiet)
190190# Use git describe to get the latest version tag, commits since then, sha and dirty flag, this
191191# results is something like "v1.2.0-13-ab6cedf-dirty"
192- VERSION := $(shell (git describe --tags --match 'v* ' --long --dirty || echo "no-tag") | sed -re 's/(v[0-9]*\.[0-9]*)\.[0-9]*-/\1 ./')
192+ VERSION := $(shell (git describe --tags --match 'v* ' --long --dirty || echo "no-tag") | sed -re 's/(\.0)?-/ ./')
193193# If not on master then insert the branch name
194194ifneq ($(TRAVIS_BRANCH ) ,master)
195- ifneq ($(TRAVIS_BRANCH ) , $( patsubst - * ,, $( VERSION ) ) )
195+ ifneq ($(findstring V % , $( TRAVIS_BRANCH ) ) , )
196196VERSION := $(shell echo $(VERSION ) | sed -e 's/-/-$(TRAVIS_BRANCH ) -/')
197197endif
198198endif
You can’t perform that action at this time.
0 commit comments