From: Sebastien Douheret Date: Fri, 23 Jun 2017 17:03:26 +0000 (+0200) Subject: Set SUB_VERSION as current commit ID. X-Git-Tag: 0.1.0~12 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=59b0682f87803e69a58e58ea0f3c50f606745cae;p=src%2Fxds%2Fxds-agent.git Set SUB_VERSION as current commit ID. Signed-off-by: Sebastien Douheret --- diff --git a/Makefile b/Makefile index b55a77a..fe910a2 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ ifeq ($(origin SUB_VERSION), undefined) VERSION := $(firstword $(subst -, ,$(SUB_VERSION))) SUB_VERSION := $(word 2,$(subst -, ,$(SUB_VERSION))) else - SUB_VERSION := $(shell git describe --tags --always | sed 's/^v//') + SUB_VERSION := $(shell git rev-parse --short HEAD) ifeq ($(SUB_VERSION), ) SUB_VERSION := unknown-dev endif