aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/scripts/build_version.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xlinden/scripts/build_version.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/linden/scripts/build_version.py b/linden/scripts/build_version.py
index 908c57d..9746b7c 100755
--- a/linden/scripts/build_version.py
+++ b/linden/scripts/build_version.py
@@ -20,13 +20,13 @@ def get_version(filename):
20 fp.close() 20 fp.close()
21 21
22 vals = {} 22 vals = {}
23 m = re.search('const S32 IMP_VERSION_MAJOR = (\d+);', data) 23 m = re.search('<viewer version_major="(\d+)" />', data)
24 vals['major'] = m.group(1) 24 vals['major'] = m.group(1)
25 m = re.search('const S32 IMP_VERSION_MINOR = (\d+);', data) 25 m = re.search('<viewer version_minor="(\d+)" />', data)
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('<viewer 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('<viewer version_test="(.*)" />', data)
30 vals['test'] = m.group(1) 30 vals['test'] = m.group(1)
31 31
32 version = "%(major)s.%(minor)s.%(patch)s" % vals 32 version = "%(major)s.%(minor)s.%(patch)s" % vals