Updated client version handling

This commit is contained in:
Joseph Coffland 2014-04-08 19:59:00 -07:00
parent 95014fe99d
commit 9dcee70d20
3 changed files with 5 additions and 8 deletions

4
.gitmodules vendored
View File

@ -1,4 +0,0 @@
[submodule "version"]
path = version
url = git@github.com:FoldingAtHome/client-version.git
branch = master

View File

@ -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 +0,0 @@
Subproject commit cc462a4bc12ef3d7af7579a5ef83edd27f8865a2