Change name to LOC_REV.

--HG--
branch : develop
This commit is contained in:
dismine 2014-06-26 19:08:17 +03:00
parent 6218101f61
commit 23a709e301
2 changed files with 5 additions and 5 deletions

View File

@ -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. #precompiled headers file.
DEFINES += LOCAL_REVISION=0 DEFINES += "LOC_REV=0"
}else{ }else{
# Release # Release
*-g++{ *-g++{
@ -553,11 +553,11 @@ CONFIG(debug, debug|release){
DEFINES += QT_NO_DEBUG_OUTPUT DEFINES += QT_NO_DEBUG_OUTPUT
#local revision number for using in version #local revision number for using in version
!system(hg) { !system(hg) {
DEFINES += LOCAL_REVISION=0 DEFINES += "LOC_REV=0"
} }
else else
{ {
DEFINES += LOCAL_REVISION=$$system(hg parents --template '{rev}') DEFINES += LOC_REV=$$system(hg parents --template '{rev}')
} }
} }

View File

@ -34,6 +34,6 @@ extern const int MINOR_VERSION = 2;
extern const int DEBUG_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) 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 " 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."); "WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.");