aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorJacek Antonelli2009-06-06 19:07:46 -0500
committerJacek Antonelli2009-06-06 19:07:46 -0500
commit5cc8612e3c2d839984d67ba5b7e02d1e1cc6995b (patch)
treeff055f5fc8572c8a9af7bb43ce8907c92f8b1062
parentPie menu for HUD and Attachment should use "Attachment Touch". (diff)
downloadmeta-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.txt6
-rwxr-xr-xlinden/scripts/build_version.py10
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 @@
12009-06-06 Jacek Antonelli <jacek.antonelli@gmail.com> 12009-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
34if __name__ == '__main__': 40if __name__ == '__main__':
35 import sys 41 import sys