aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/scripts/build_version.py
diff options
context:
space:
mode:
Diffstat (limited to 'linden/scripts/build_version.py')
-rwxr-xr-xlinden/scripts/build_version.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/linden/scripts/build_version.py b/linden/scripts/build_version.py
index 3d66a65..908c57d 100755
--- a/linden/scripts/build_version.py
+++ b/linden/scripts/build_version.py
@@ -26,10 +26,16 @@ def get_version(filename):
26 vals['minor'] = m.group(1) 26 vals['minor'] = m.group(1)
27 m = re.search('const S32 IMP_VERSION_PATCH = (\d+);', data) 27 m = re.search('const S32 IMP_VERSION_PATCH = (\d+);', data)
28 vals['patch'] = m.group(1) 28 vals['patch'] = m.group(1)
29 m = re.search('const char \* const IMP_VERSION_TEST = "(.+)";', data) 29 m = re.search('const char \* const IMP_VERSION_TEST = "(.*)";', data)
30 vals['test'] = m.group(1) 30 vals['test'] = m.group(1)
31 31
32 return "%(major)s.%(minor)s.%(patch)s-%(test)s" % vals 32 version = "%(major)s.%(minor)s.%(patch)s" % vals
33
34 if len(vals['test']) > 0:
35 version += "-%(test)s" % vals
36
37 return version
38
33 39
34if __name__ == '__main__': 40if __name__ == '__main__':
35 import sys 41 import sys