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
+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