projects
/
platform
/
upstream
/
bcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a0adc86
)
Omit leading 'v' from python .tar.gz revision
author
Brenden Blanco
<bblanco@plumgrid.com>
Wed, 10 Jun 2015 03:28:27 +0000
(20:28 -0700)
committer
Brenden Blanco
<bblanco@plumgrid.com>
Wed, 10 Jun 2015 03:28:27 +0000
(20:28 -0700)
Signed-off-by: Brenden Blanco <bblanco@plumgrid.com>
scripts/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/scripts/CMakeLists.txt
b/scripts/CMakeLists.txt
index
5b0b792
..
6e13a71
100644
(file)
--- a/
scripts/CMakeLists.txt
+++ b/
scripts/CMakeLists.txt
@@
-5,7
+5,7
@@
string(SUBSTRING "${GIT_SHA1}" 0 8 GIT_SHA1_SHORT)
git_describe(GIT_DESCRIPTION)
git_describe(GIT_TAG_LAST "--abbrev=0")
git_get_exact_tag(GIT_TAG_EXACT)
-s
et(REVISION "${GIT_TAG_LAST}-${GIT_SHA1_SHORT}"
)
+s
tring(SUBSTRING "${GIT_TAG_LAST}-${GIT_SHA1_SHORT}" 1 -1 REVISION
)
if(GIT_TAG_EXACT)
string(SUBSTRING "${GIT_TAG_EXACT}" 1 -1 REVISION)
message(STATUS "Currently on Git tag ${GIT_TAG_EXACT}")