aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/lib/python
diff options
context:
space:
mode:
authorJacek Antonelli2008-11-02 23:36:52 -0600
committerJacek Antonelli2008-11-02 23:36:52 -0600
commitc355cd633a5b9bc70fbbc8ee2e047bf4df6ffab3 (patch)
tree07925216eaf1ff3a7d4858b95815bda800a3c6f3 /linden/indra/lib/python
parentUse Imprudence icon on Linux. (diff)
downloadmeta-impy-c355cd633a5b9bc70fbbc8ee2e047bf4df6ffab3.zip
meta-impy-c355cd633a5b9bc70fbbc8ee2e047bf4df6ffab3.tar.gz
meta-impy-c355cd633a5b9bc70fbbc8ee2e047bf4df6ffab3.tar.bz2
meta-impy-c355cd633a5b9bc70fbbc8ee2e047bf4df6ffab3.tar.xz
Script finds Imprudence version numbers for packaging.
Diffstat (limited to 'linden/indra/lib/python')
-rw-r--r--linden/indra/lib/python/indra/util/llversion.py11
1 files changed, 4 insertions, 7 deletions
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
46def get_version(version_type): 46def 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
59def get_channel(version_type): 56def get_channel(version_type):