diff --git a/src/app/app.pro b/src/app/app.pro index fc6ecd03d..b90f0d086 100644 --- a/src/app/app.pro +++ b/src/app/app.pro @@ -541,9 +541,9 @@ CONFIG(debug, debug|release){ } } - #Calculate revision number only in release mode. Change revision number each time need recompilation + #Calculate revision number only in release mode. Change revision number each time requare recompilation #precompiled headers file. - DEFINES += LOCAL_REVISION=0 + DEFINES += "LOC_REV=0" }else{ # Release *-g++{ @@ -553,11 +553,11 @@ CONFIG(debug, debug|release){ DEFINES += QT_NO_DEBUG_OUTPUT #local revision number for using in version !system(hg) { - DEFINES += LOCAL_REVISION=0 + DEFINES += "LOC_REV=0" } else { - DEFINES += LOCAL_REVISION=$$system(hg parents --template '{rev}') + DEFINES += LOC_REV=$$system(hg parents --template '{rev}') } } diff --git a/src/app/version.cpp b/src/app/version.cpp index 610304c2f..3ea08e6c3 100644 --- a/src/app/version.cpp +++ b/src/app/version.cpp @@ -34,6 +34,6 @@ extern const int MINOR_VERSION = 2; extern const int DEBUG_VERSION = 2; extern const QString APP_VERSION(QStringLiteral("%1.%2.%3.%4").arg(MAJOR_VERSION).arg(MINOR_VERSION).arg(DEBUG_VERSION) - .arg(LOCAL_REVISION)); + .arg(LOC_REV)); extern const QString WARRANTY("The program is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE " "WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.");