Updated client version handling
This commit is contained in:
parent
95014fe99d
commit
9dcee70d20
4
.gitmodules
vendored
4
.gitmodules
vendored
@ -1,4 +0,0 @@
|
||||
[submodule "version"]
|
||||
path = version
|
||||
url = git@github.com:FoldingAtHome/client-version.git
|
||||
branch = master
|
@ -10,12 +10,14 @@ except Exception, e:
|
||||
env.CBAddVariables(
|
||||
BoolVariable('mostly_static', 'Link most libraries statically', 1))
|
||||
|
||||
env.CBLoadTools('packager run_distutils osx')
|
||||
env.CBLoadTools('packager run_distutils osx fah-client-version')
|
||||
conf = env.CBConfigure()
|
||||
|
||||
# Version
|
||||
version = open('version/version.txt', 'r').read().strip()
|
||||
major, minor, revision = version.split('.')
|
||||
try:
|
||||
version = env.FAHClientVersion()
|
||||
except:
|
||||
version = '0.0.0'
|
||||
|
||||
# Config vars
|
||||
env.Replace(PACKAGE_VERSION = version)
|
||||
|
1
version
1
version
@ -1 +0,0 @@
|
||||
Subproject commit cc462a4bc12ef3d7af7579a5ef83edd27f8865a2
|
Loading…
x
Reference in New Issue
Block a user