deleted file build_num; will be adding this file when we produce source tar ball; if the file is missing, will use git branch and last commit in place of the build number

This commit is contained in:
Vadim Kurland
2010-11-04 13:21:39 -07:00
parent eb48002f88
commit 77703f8068
4 changed files with 11 additions and 3 deletions
-1
View File
@@ -1 +0,0 @@
#define BUILD_NUM 3407
+11
View File
@@ -83,4 +83,15 @@ exists(qmake2.inc) {
include(qmake2.inc)
}
exists(build_num) {
include(build_num)
}
if (isEmpty(BUILD_NUM)) {
GIT_BRANCH=$$system(git branch | grep '\\*' | cut -c3-)
GIT_COMMIT=$$system(git show --abbrev-commit -1 --pretty=oneline --shortstat | head -1 | cut -c1-7)
BUILD_NUM="$$GIT_BRANCH:$$GIT_COMMIT"
}
DEFINES += BUILD_NUM=$$BUILD_NUM
INSTALLS += target
-1
View File
@@ -1,7 +1,6 @@
#include "../../config.h"
#include "../../build_num"
#include <string>
#include <assert.h>
-1
View File
@@ -26,7 +26,6 @@ INSTALLS -= target
# control whether we build debug or release in ../../qmake.inc
# CONFIG += precompile_header
HEADERS += ../../config.h \
../../build_num \
events.h \
FWWindow.h \
ProjectPanel.h \