From 2b8043b82b99b5fc7222b5a9e43e4de6d4233184 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 29 Oct 2014 12:51:45 -0700 Subject: 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 --- subsurface-gen-version.pri | 1 + 1 file changed, 1 insertion(+) (limited to 'subsurface-gen-version.pri') 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") -- cgit v1.2.3-70-g09d2