From 09e99df97438067bbdbd26c5a3683006f4cab3d8 Mon Sep 17 00:00:00 2001 From: ichekrygin Date: Tue, 14 Aug 2018 23:20:27 -0700 Subject: [PATCH] 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 --- build/makelib/common.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/makelib/common.mk b/build/makelib/common.mk index 94f6a55a7..344d8495c 100644 --- a/build/makelib/common.mk +++ b/build/makelib/common.mk @@ -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