Browse Source

Unroll version manipulation

QGC4.4
Nate Weibley 9 years ago
parent
commit
fe21af1335
  1. 4
      QGCCommon.pri

4
QGCCommon.pri

@ -90,7 +90,9 @@ MobileBuild { @@ -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

Loading…
Cancel
Save