Skip to content
Snippets Groups Projects
Commit 22de7c01 authored by Drake Arconis's avatar Drake Arconis
Browse files

fixed: version number generation off by one

parent 9ee406d5
No related branches found
No related tags found
No related merge requests found
...@@ -20,9 +20,8 @@ if (NOT DEFINED VIEWER_SHORT_VERSION) # will be true in indra/, false in indra/n ...@@ -20,9 +20,8 @@ if (NOT DEFINED VIEWER_SHORT_VERSION) # will be true in indra/, false in indra/n
find_program(SED sed) find_program(SED sed)
if (DEFINED MERCURIAL AND DEFINED WORDCOUNT AND DEFINED SED) if (DEFINED MERCURIAL AND DEFINED WORDCOUNT AND DEFINED SED)
execute_process( execute_process(
COMMAND ${MERCURIAL} log -r tip:0 --template '\\n' COMMAND ${MERCURIAL} identify -n
COMMAND ${WORDCOUNT} -l COMMAND ${SED} "s/+//"
COMMAND ${SED} "s/ //g"
OUTPUT_VARIABLE VIEWER_VERSION_REVISION OUTPUT_VARIABLE VIEWER_VERSION_REVISION
OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_STRIP_TRAILING_WHITESPACE
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment