diff options
author | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-06-23 19:10:44 +0200 |
---|---|---|
committer | Sebastien Douheret <sebastien.douheret@iot.bzh> | 2017-06-23 19:10:44 +0200 |
commit | d3cb7d647c0f3c3aad9a60a8655b1f5427bbd778 (patch) | |
tree | 932c1052f38cab6480740eea9b638d32e7ec109c | |
parent | ef33f263156fedd0907c45b033dee569f56f9ec8 (diff) |
Set SUB_VERSION as current commit ID.
-rw-r--r-- | Makefile | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -15,7 +15,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 @@ -55,7 +55,6 @@ LOCAL_BINDIR := $(ROOT_SRCDIR)/bin LOCAL_TOOLSDIR := $(ROOT_SRCDIR)/tools/${HOST_GOOS} PACKAGE_DIR := $(ROOT_SRCDIR)/package - export GOPATH := $(shell go env GOPATH):$(ROOT_GOPRJ) export PATH := $(PATH):$(LOCAL_TOOLSDIR) |