Update version generation to produce a valid semver value
Adjust `sed` command for BSD version, which does not support '/x/y/2g' Signed-off-by: ichekrygin <illya.chekrygin@gmail.com>
This commit is contained in:
1 file changed
+1
-1
@@ -62,7 +62,7 @@ SED_CMD?=sed -i -e
|
||||
# set the version number. you should not need to do this
|
||||
# for the majority of scenarios.
|
||||
ifeq ($(origin VERSION), undefined)
|
||||
VERSION := $(shell git describe --dirty --always --tags | sed 's/-g/.g/g;s/-dirty/.dirty/g')
|
||||
VERSION := $(shell git describe --dirty --always --tags | sed 's/-/./2' | sed 's/-/./2' )
|
||||
endif
|
||||
export VERSION
|
||||
|
||||
|
||||
Reference in new issue
Block a user