diff options
Diffstat (limited to 'linden/scripts')
-rwxr-xr-x | linden/scripts/build_version.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/linden/scripts/build_version.py b/linden/scripts/build_version.py index 4bef290..46587e8 100755 --- a/linden/scripts/build_version.py +++ b/linden/scripts/build_version.py | |||
@@ -20,16 +20,14 @@ def get_version(filename): | |||
20 | fp.close() | 20 | fp.close() |
21 | 21 | ||
22 | vals = {} | 22 | vals = {} |
23 | m = re.search('const S32 LL_VERSION_MAJOR = (\d+);', data) | 23 | m = re.search('const S32 IMP_VERSION_MAJOR = (\d+);', data) |
24 | vals['major'] = m.group(1) | 24 | vals['major'] = m.group(1) |
25 | m = re.search('const S32 LL_VERSION_MINOR = (\d+);', data) | 25 | m = re.search('const S32 IMP_VERSION_MINOR = (\d+);', data) |
26 | vals['minor'] = m.group(1) | 26 | vals['minor'] = m.group(1) |
27 | m = re.search('const S32 LL_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 S32 LL_VERSION_BUILD = (\d+);', data) | ||
30 | vals['build'] = m.group(1) | ||
31 | 29 | ||
32 | return "%(major)s.%(minor)s.%(patch)s.%(build)s" % vals | 30 | return "%(major)s.%(minor)s.%(patch)s" % vals |
33 | 31 | ||
34 | if __name__ == '__main__': | 32 | if __name__ == '__main__': |
35 | import sys | 33 | import sys |