diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-10-29 12:51:45 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-10-29 13:01:26 -0700 |
commit | 2b8043b82b99b5fc7222b5a9e43e4de6d4233184 (patch) | |
tree | 8d0fa8b62610a7f31cd60ac09647d7567f1e942e /subsurface-gen-version.pri | |
parent | 0e0d6135afb626480f85135cf1c16c1701105088 (diff) | |
download | subsurface-2b8043b82b99b5fc7222b5a9e43e4de6d4233184.tar.gz |
Create better version numbering for Windows
I don't think this will be a problem for the other OSs, but it needs a bit
more testing, especially on the Mac.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface-gen-version.pri')
-rw-r--r-- | subsurface-gen-version.pri | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/subsurface-gen-version.pri b/subsurface-gen-version.pri index 8b2131a8a..67bcdd761 100644 --- a/subsurface-gen-version.pri +++ b/subsurface-gen-version.pri @@ -10,6 +10,7 @@ exists(.git/HEAD): { VERSION_SCRIPT = $$PWD/scripts/get-version # always use linux here -------------------vvv so we get the true full version FULL_VERSION = "`$$VERSION_SCRIPT linux`" + VERSION = $$system("sh scripts/get-version full || echo $${VERSION}") PRODVERSION_STRING = $$system("sh scripts/get-version win $$FULL_VERSION || echo $${VERSION}.0.0-git") VERSION_STRING = $$system("sh scripts/get-version linux $$FULL_VERSION || echo $${VERSION}-git") version_h.depends = $$VERSION_SCRIPT $$PWD/.git/$$system("$$SET_GIT_DIR=$$PWD/.git git rev-parse --symbolic-full-name HEAD") |