aboutsummaryrefslogtreecommitdiffstats
path: root/subsurface-gen-version.pri
diff options
context:
space:
mode:
Diffstat (limited to 'subsurface-gen-version.pri')
-rw-r--r--subsurface-gen-version.pri1
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")