diff options
-rw-r--r-- | ChangeLog.txt | 8 | ||||
-rw-r--r-- | linden/indra/lib/python/indra/util/llversion.py | 11 | ||||
-rwxr-xr-x | linden/scripts/build_version.py | 10 |
3 files changed, 16 insertions, 13 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index dfba624..ad4e55d 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -1,3 +1,11 @@ | |||
1 | 2008-11-02 Jacek Antonelli <jacek.antonelli@gmail.com> | ||
2 | |||
3 | * linden/scripts/build_version.py: | ||
4 | Script finds Imprudence version numbers for packaging. | ||
5 | * linden/indra/lib/python/indra/util/llversion.py: | ||
6 | Ditto. | ||
7 | |||
8 | |||
1 | 2008-11-01 Jacek Antonelli <jacek.antonelli@gmail.com> | 9 | 2008-11-01 Jacek Antonelli <jacek.antonelli@gmail.com> |
2 | 10 | ||
3 | * linden/indra/llwindow/llwindowsdl.cpp: | 11 | * linden/indra/llwindow/llwindowsdl.cpp: |
diff --git a/linden/indra/lib/python/indra/util/llversion.py b/linden/indra/lib/python/indra/util/llversion.py index cf4f3c6..666cce4 100644 --- a/linden/indra/lib/python/indra/util/llversion.py +++ b/linden/indra/lib/python/indra/util/llversion.py | |||
@@ -45,15 +45,12 @@ def get_version_file_contents(version_type): | |||
45 | 45 | ||
46 | def get_version(version_type): | 46 | def get_version(version_type): |
47 | file_str = get_version_file_contents(version_type) | 47 | file_str = get_version_file_contents(version_type) |
48 | m = re.search('const S32 LL_VERSION_MAJOR = (\d+);', file_str) | 48 | m = re.search('const S32 IMP_VERSION_MAJOR = (\d+);', file_str) |
49 | VER_MAJOR = m.group(1) | 49 | VER_MAJOR = m.group(1) |
50 | m = re.search('const S32 LL_VERSION_MINOR = (\d+);', file_str) | 50 | m = re.search('const S32 IMP_VERSION_MINOR = (\d+);', file_str) |
51 | VER_MINOR = m.group(1) | 51 | VER_MINOR = m.group(1) |
52 | m = re.search('const S32 LL_VERSION_PATCH = (\d+);', file_str) | 52 | m = re.search('const S32 IMP_VERSION_PATCH = (\d+);', file_str) |
53 | VER_PATCH = m.group(1) | 53 | version = "%(VER_MAJOR)s.%(VER_MINOR)s.%(VER_PATCH)s" % locals() |
54 | m = re.search('const S32 LL_VERSION_BUILD = (\d+);', file_str) | ||
55 | VER_BUILD = m.group(1) | ||
56 | version = "%(VER_MAJOR)s.%(VER_MINOR)s.%(VER_PATCH)s.%(VER_BUILD)s" % locals() | ||
57 | return version | 54 | return version |
58 | 55 | ||
59 | def get_channel(version_type): | 56 | def get_channel(version_type): |
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 |