Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Commit

Permalink
change the version format for development builds
Browse files Browse the repository at this point in the history
The suffix is now "-dev-COMMITHASH" which makes it easier for users to
differentiate between final releases and interim development snapshots.
  • Loading branch information
ashkulz committed Oct 21, 2014
1 parent b42a07d commit e9cecc7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
13 changes: 4 additions & 9 deletions common.pri
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,8 @@ greaterThan(QT_MAJOR_VERSION, 4) {
VERSION_TEXT=$$(WKHTMLTOX_VERSION)
isEmpty(VERSION_TEXT): VERSION_TEXT=$$cat($$PWD/VERSION)
VERSION_LIST=$$split(VERSION_TEXT, "-")
count(VERSION_LIST, 1) {
VERSION=$$VERSION_TEXT
FULL_VERSION=$$VERSION
} else {
VERSION=$$member(VERSION_LIST, 0)
BUILD=$$member(VERSION_LIST, 1)
FULL_VERSION=$$VERSION-$$BUILD
}

DEFINES += VERSION=$$VERSION FULL_VERSION=$$FULL_VERSION
count(VERSION_LIST, 1): VERSION=$$VERSION_TEXT
else: VERSION=$$member(VERSION_LIST, 0)

DEFINES += VERSION=$$VERSION FULL_VERSION=$$VERSION_TEXT
2 changes: 1 addition & 1 deletion scripts/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ def get_version(basedir):
hash = get_output('git', 'rev-parse', '--short', 'HEAD')
if not hash:
return (text, version)
return ('%s-%s' % (version, hash), version)
return ('%s-%s' % (text, hash), version)

def qt_config(key, *opts):
input, output = [], []
Expand Down

0 comments on commit e9cecc7

Please sign in to comment.