From 23a709e301593ca53160b13d2143893a0c74ceb3 Mon Sep 17 00:00:00 2001 From: dismine Date: Thu, 26 Jun 2014 19:08:17 +0300 Subject: [PATCH] Change name to LOC_REV. --HG-- branch : develop --- src/app/app.pro | 8 ++++---- src/app/version.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) 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.");