aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/lib
diff options
context:
space:
mode:
authorDavid Walter Seikel2011-12-03 18:50:34 +1000
committerDavid Walter Seikel2011-12-03 18:50:34 +1000
commitd3b9f715f0ad9516fa350a5c0b83330b733ee0f9 (patch)
treee1481a7b83ae6f4fa0a88c4eebb6dbecd83e86fd /linden/indra/lib
parentAnother possible fix for misplaced HUDs? (diff)
parentMade the voice license window resizable (diff)
downloadmeta-impy-d3b9f715f0ad9516fa350a5c0b83330b733ee0f9.zip
meta-impy-d3b9f715f0ad9516fa350a5c0b83330b733ee0f9.tar.gz
meta-impy-d3b9f715f0ad9516fa350a5c0b83330b733ee0f9.tar.bz2
meta-impy-d3b9f715f0ad9516fa350a5c0b83330b733ee0f9.tar.xz
Merge branch 'next' of git://github.com/imprudence/imprudence into next
Removed the new "Set your own Imprudence tag colour feature". Should check though, might be bits left that where not obvious. Conflicts: .gitignore linden/indra/cmake/00-Common.cmake linden/indra/newview/llvoavatar.cpp linden/indra/newview/res/viewerRes.rc linden/indra/newview/skins/default/xui/en-us/panel_login.xml linden/indra/newview/viewer_manifest.py linden/indra/newview/viewerinfo.cpp The usual branding conflicts.
Diffstat (limited to 'linden/indra/lib')
-rw-r--r--linden/indra/lib/python/indra/util/fastest_elementtree.py1
-rw-r--r--linden/indra/lib/python/indra/util/llmanifest.py53
2 files changed, 32 insertions, 22 deletions
diff --git a/linden/indra/lib/python/indra/util/fastest_elementtree.py b/linden/indra/lib/python/indra/util/fastest_elementtree.py
index 3e2189c..0e92545 100644
--- a/linden/indra/lib/python/indra/util/fastest_elementtree.py
+++ b/linden/indra/lib/python/indra/util/fastest_elementtree.py
@@ -43,6 +43,7 @@ try:
43 if not use_celementree: 43 if not use_celementree:
44 raise ImportError() 44 raise ImportError()
45 # Python 2.3 and 2.4. 45 # Python 2.3 and 2.4.
46 from cElementTree import fromstring # this isn't in old versions of cElementTree
46 from cElementTree import * 47 from cElementTree import *
47 ElementTreeError = SyntaxError 48 ElementTreeError = SyntaxError
48except ImportError: 49except ImportError:
diff --git a/linden/indra/lib/python/indra/util/llmanifest.py b/linden/indra/lib/python/indra/util/llmanifest.py
index f82394d..7025cc2 100644
--- a/linden/indra/lib/python/indra/util/llmanifest.py
+++ b/linden/indra/lib/python/indra/util/llmanifest.py
@@ -76,17 +76,22 @@ def get_default_platform(dummy):
76 }[sys.platform] 76 }[sys.platform]
77 77
78def get_default_version(srctree): 78def get_default_version(srctree):
79 # look up llversion.h and parse out the version info 79 p = os.path.join(srctree, 'viewerinfo.cpp')
80 paths = [os.path.join(srctree, x, 'llversionviewer.h') for x in ['llcommon', '../llcommon', '../../indra/llcommon.h']] 80 if os.path.exists(p):
81 for p in paths: 81 contents = open(p, 'r').read()
82 if os.path.exists(p): 82 major = re.search("MAJOR\s=\s([0-9]+)", contents).group(1)
83 contents = open(p, 'r').read() 83 minor = re.search("MINOR\s=\s([0-9]+)", contents).group(1)
84 major = re.search("IMP_VERSION_MAJOR\s=\s([0-9]+)", contents).group(1) 84 patch = re.search("PATCH\s=\s([0-9]+)", contents).group(1)
85 minor = re.search("IMP_VERSION_MINOR\s=\s([0-9]+)", contents).group(1) 85 rleas = re.search("RLEAS\s=\s([0-9]+)", contents).group(1)
86 patch = re.search("IMP_VERSION_PATCH\s=\s([0-9]+)", contents).group(1) 86 extra = re.search('string\sEXTRA\s=\s"(.*)";', contents).group(1)
87 #build = re.search("LL_VERSION_BUILD\s=\s([0-9]+)", contents).group(1) 87 version = "%s.%s.%s.%s"%(major, minor, patch, rleas)
88 build = re.search('const char \* const IMP_VERSION_TEST = "(.*)";', contents).group(1) 88 if len(extra) > 0:
89 return major, minor, patch, build 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
90 95
91def get_channel(srctree): 96def get_channel(srctree):
92 # look up llversionserver.h and parse out the version info 97 # look up llversionserver.h and parse out the version info
@@ -121,15 +126,16 @@ ARGUMENTS=[
121 default=""), 126 default=""),
122 dict(name='artwork', description='Artwork directory.', default=DEFAULT_SRCTREE), 127 dict(name='artwork', description='Artwork directory.', default=DEFAULT_SRCTREE),
123 dict(name='build', description='Build directory.', default=DEFAULT_SRCTREE), 128 dict(name='build', description='Build directory.', default=DEFAULT_SRCTREE),
124 dict(name='buildtype', 129 dict(name='buildtype', description="""The build type used. ('Debug', 'Release', 'ReleaseSSE2', or 'RelWithDebInfo')
125 description='Set to DEBUG if this is a debug build.', 130 Default is Release """,
126 default="RELEASE"), 131 default="Release"),
127 dict(name='channel', 132 dict(name='branding_id', description="""Identifier for the branding set to
128 description="""The channel to use for updates, packaging, settings name, etc.""", 133 use. Currently, 'meta-impy')""",
129 default=get_channel), 134 default='meta-impy'),
130 dict(name='configuration', 135 dict(name='configuration',
131 description="""The build configuration used. Only used on OS X for 136 description="""The build configuration used. On OSX this is
132 now, but it could be used for other platforms as well.""", 137 Universal, etc. On Windows it's the *actual* buildtype for
138 some weird reason.""",
133 default="Universal"), 139 default="Universal"),
134 dict(name='dest', description='Destination directory.', default=DEFAULT_SRCTREE), 140 dict(name='dest', description='Destination directory.', default=DEFAULT_SRCTREE),
135 dict(name='grid', 141 dict(name='grid',
@@ -137,13 +143,16 @@ ARGUMENTS=[
137 though it's not strictly a grid, 'firstlook' is also an acceptable 143 though it's not strictly a grid, 'firstlook' is also an acceptable
138 value for this parameter.""", 144 value for this parameter.""",
139 default=""), 145 default=""),
146 dict(name='channel',
147 description="""The channel to use for updates, packaging, settings name, etc.""",
148 default=get_channel),
149 dict(name='login_channel',
150 description="""The channel to use for login handshake/updates only.""",
151 default=None),
140 dict(name='installer_name', 152 dict(name='installer_name',
141 description=""" The name of the file that the installer should be 153 description=""" The name of the file that the installer should be
142 packaged up into. Only used on Linux at the moment.""", 154 packaged up into. Only used on Linux at the moment.""",
143 default=None), 155 default=None),
144 dict(name='login_channel',
145 description="""The channel to use for login handshake/updates only.""",
146 default=None),
147 dict(name='login_url', 156 dict(name='login_url',
148 description="""The url that the login screen displays in the client.""", 157 description="""The url that the login screen displays in the client.""",
149 default=None), 158 default=None),