mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-12 16:13:13 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user