Commit fe21af13 authored by Nate Weibley's avatar Nate Weibley

Unroll version manipulation

parent 8d0ed827
......@@ -90,7 +90,9 @@ MobileBuild {
exists ($$PWD/.git) {
GIT_DESCRIBE = $$system(git --git-dir $$PWD/.git --work-tree $$PWD describe --always --tags)
GIT_HASH = $$system(git rev-parse HEAD)
VERSION = $$section($$replace($$replace(GIT_DESCRIBE, "v", ""), "-", "."), ".", 0, 3)
VERSION = $$replace(GIT_DESCRIBE, "v", "")
VERSION = $$replace(VERSION, "-", ".")
VERSION = $$section(VERSION, ".", 0, 3)
message(QGroundControl version $${GIT_DESCRIBE} hash $${GIT_HASH})
} else {
GIT_DESCRIBE = None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment