From fe21af1335e5c38496a64519026fd0b7cade526d Mon Sep 17 00:00:00 2001 From: Nate Weibley Date: Fri, 29 Jan 2016 17:24:20 -0500 Subject: [PATCH] Unroll version manipulation --- QGCCommon.pri | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/QGCCommon.pri b/QGCCommon.pri index 3c3f77357..002d7e30b 100644 --- a/QGCCommon.pri +++ b/QGCCommon.pri @@ -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 -- 2.22.0