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:
ichekrygin committed 2018-08-14 23:53:45 -07:00
1 parent 8e29245e5e
commit 09e99df974
1 file changed
+1 -1
+1 -1
View File
@@ -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