fix git revision detection

This commit is contained in:
Martin Rotter 2019-06-12 08:28:28 +02:00
parent 5226f5395e
commit 8eada7eaa3

View File

@ -20,7 +20,7 @@ DISTFILES += ../../resources/scripts/uncrustify/uncrustify.cfg
CODECFORTR = UTF-8
CODECFORSRC = UTF-8
exists(.git) {
exists($PWD/../../.git) {
APP_REVISION = $$system(git rev-parse --short HEAD)
}
@ -33,4 +33,4 @@ equals(USE_WEBENGINE, false) {
APP_REVISION = $$sprintf('%1-%2', $$APP_REVISION, nowebengine)
}
DEFINES *= APP_REVISION='"\\\"$$APP_REVISION\\\""'
DEFINES *= APP_REVISION='"\\\"$$APP_REVISION\\\""'