diff options
author | Jacek Antonelli | 2009-06-06 19:07:46 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-06-06 19:07:46 -0500 |
commit | 5cc8612e3c2d839984d67ba5b7e02d1e1cc6995b (patch) | |
tree | ff055f5fc8572c8a9af7bb43ce8907c92f8b1062 | |
parent | Pie menu for HUD and Attachment should use "Attachment Touch". (diff) | |
download | meta-impy-5cc8612e3c2d839984d67ba5b7e02d1e1cc6995b.zip meta-impy-5cc8612e3c2d839984d67ba5b7e02d1e1cc6995b.tar.gz meta-impy-5cc8612e3c2d839984d67ba5b7e02d1e1cc6995b.tar.bz2 meta-impy-5cc8612e3c2d839984d67ba5b7e02d1e1cc6995b.tar.xz |
Improved regex and formatting in build_version.py.
Handles empty test version strings better.
-rw-r--r-- | ChangeLog.txt | 6 | ||||
-rwxr-xr-x | linden/scripts/build_version.py | 10 |
2 files changed, 14 insertions, 2 deletions
diff --git a/ChangeLog.txt b/ChangeLog.txt index 987aed7..ba6bd17 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt | |||
@@ -1,5 +1,11 @@ | |||
1 | 2009-06-06 Jacek Antonelli <jacek.antonelli@gmail.com> | 1 | 2009-06-06 Jacek Antonelli <jacek.antonelli@gmail.com> |
2 | 2 | ||
3 | * Improved regex and formatting in build_version.py. | ||
4 | Handles empty test version strings better. | ||
5 | |||
6 | modified: linden/scripts/build_version.py | ||
7 | |||
8 | |||
3 | * Pie menu for HUD and Attachment should use "Attachment Touch". | 9 | * Pie menu for HUD and Attachment should use "Attachment Touch". |
4 | 10 | ||
5 | modified: linden/indra/newview/skins/default/xui/en-us/menu_pie_attachment.xml | 11 | modified: linden/indra/newview/skins/default/xui/en-us/menu_pie_attachment.xml |
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 | ||
34 | if __name__ == '__main__': | 40 | if __name__ == '__main__': |
35 | import sys | 41 | import sys |