aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/scripts/build_version.py
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-05-17 10:57:59 -0700
committerJacek Antonelli2010-06-19 02:40:53 -0500
commitf286bb2bf6f860419f73983233d4f747feb06300 (patch)
treea1db8a48c4bf1a78788c15afa2c1e8bfaed3bda5 /linden/scripts/build_version.py
parentSet the imprudence viewer version in xml (diff)
downloadmeta-impy-f286bb2bf6f860419f73983233d4f747feb06300.zip
meta-impy-f286bb2bf6f860419f73983233d4f747feb06300.tar.gz
meta-impy-f286bb2bf6f860419f73983233d4f747feb06300.tar.bz2
meta-impy-f286bb2bf6f860419f73983233d4f747feb06300.tar.xz
Made CMake find the viewer version in xml
Diffstat (limited to 'linden/scripts/build_version.py')
-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