aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorMcCabe Maxsted2011-09-08 19:19:37 -0700
committerMcCabe Maxsted2011-09-08 19:19:37 -0700
commit8fca0f8b0f56ae6ec54200e22f85d87c53d3ea79 (patch)
tree68df9052dbb816d743105b19b8493cf2b2ce5d24 /linden
parentUpdated develop.py to find VS2010 as well (patch by DJ Wind) (diff)
downloadmeta-impy-8fca0f8b0f56ae6ec54200e22f85d87c53d3ea79.zip
meta-impy-8fca0f8b0f56ae6ec54200e22f85d87c53d3ea79.tar.gz
meta-impy-8fca0f8b0f56ae6ec54200e22f85d87c53d3ea79.tar.bz2
meta-impy-8fca0f8b0f56ae6ec54200e22f85d87c53d3ea79.tar.xz
Create readable version string for installers, based on jacek's viewer_info.py script
Diffstat (limited to 'linden')
-rw-r--r--linden/indra/lib/python/indra/util/llmanifest.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/linden/indra/lib/python/indra/util/llmanifest.py b/linden/indra/lib/python/indra/util/llmanifest.py
index fbd7fea..e27bd8a 100644
--- a/linden/indra/lib/python/indra/util/llmanifest.py
+++ b/linden/indra/lib/python/indra/util/llmanifest.py
@@ -84,7 +84,14 @@ def get_default_version(srctree):
84 patch = re.search("PATCH\s=\s([0-9]+)", contents).group(1) 84 patch = re.search("PATCH\s=\s([0-9]+)", contents).group(1)
85 rleas = re.search("RLEAS\s=\s([0-9]+)", contents).group(1) 85 rleas = re.search("RLEAS\s=\s([0-9]+)", contents).group(1)
86 extra = re.search('string\sEXTRA\s=\s"(.*)";', contents).group(1) 86 extra = re.search('string\sEXTRA\s=\s"(.*)";', contents).group(1)
87 return major, minor, patch, rleas, extra 87 version = "%s.%s.%s.%s"%(major, minor, patch, rleas)
88 if len(extra) > 0:
89 # Replace spaces and some puncuation with '-' in extra
90 extra = re.sub('[- \t:;,!+/\\"\'`]+', '-', extra)
91 # Strip any leading or trailing "-"s
92 extra = extra.strip('-')
93 version += "-" + extra
94 return version
88 95
89def get_channel(srctree): 96def get_channel(srctree):
90 # look up llversionserver.h and parse out the version info 97 # look up llversionserver.h and parse out the version info