Code Review
/
src
/
xds
/
xds-agent.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
1bafa82
)
Set SUB_VERSION as current commit ID.
author
Sebastien Douheret
<sebastien.douheret@iot.bzh>
Fri, 23 Jun 2017 17:03:26 +0000
(19:03 +0200)
committer
Sebastien Douheret
<sebastien.douheret@iot.bzh>
Fri, 23 Jun 2017 17:08:34 +0000
(19:08 +0200)
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
b55a77a
..
fe910a2
100644
(file)
--- 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