aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/scripts/build_version.py
diff options
context:
space:
mode:
authorJacek Antonelli2008-12-13 22:53:52 -0600
committerJacek Antonelli2008-12-13 22:57:52 -0600
commitabeaf736d06c57f28f19360f3be202bae75f1da2 (patch)
tree5d0710e987a8790b9e1757f056df876efc5ceb24 /linden/scripts/build_version.py
parentBumped version to 1.1.0 alpha. (diff)
downloadmeta-impy-abeaf736d06c57f28f19360f3be202bae75f1da2.zip
meta-impy-abeaf736d06c57f28f19360f3be202bae75f1da2.tar.gz
meta-impy-abeaf736d06c57f28f19360f3be202bae75f1da2.tar.bz2
meta-impy-abeaf736d06c57f28f19360f3be202bae75f1da2.tar.xz
Version string generator now includes test label.
This is used for naming packages on Linux, among other things.
Diffstat (limited to '')
-rwxr-xr-xlinden/scripts/build_version.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/linden/scripts/build_version.py b/linden/scripts/build_version.py
index 46587e8..3d66a65 100755
--- a/linden/scripts/build_version.py
+++ b/linden/scripts/build_version.py
@@ -26,8 +26,10 @@ 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)
30 vals['test'] = m.group(1)
29 31
30 return "%(major)s.%(minor)s.%(patch)s" % vals 32 return "%(major)s.%(minor)s.%(patch)s-%(test)s" % vals
31 33
32if __name__ == '__main__': 34if __name__ == '__main__':
33 import sys 35 import sys