diff options
author | Anders Arnholm | 2008-12-13 10:44:15 +0100 |
---|---|---|
committer | Anders Arnholm | 2008-12-13 10:44:15 +0100 |
commit | 5a51c3fbd22d13328a84de0ba315b17e06213bdc (patch) | |
tree | 44b08892f173c2497def740ce566c2ceba475a16 /linden/indra/newview | |
parent | Bumped version to RC3. (diff) | |
parent | Imprudence 1.0.0 finalized. (diff) | |
download | meta-impy-5a51c3fbd22d13328a84de0ba315b17e06213bdc.zip meta-impy-5a51c3fbd22d13328a84de0ba315b17e06213bdc.tar.gz meta-impy-5a51c3fbd22d13328a84de0ba315b17e06213bdc.tar.bz2 meta-impy-5a51c3fbd22d13328a84de0ba315b17e06213bdc.tar.xz |
Merge branch 'next' of git://github.com/jacek/imprudence into next
Conflicts:
ChangeLog.txt
RELEASE_NOTES.txt
linden/indra/llcommon/llversionviewer.h
Diffstat (limited to 'linden/indra/newview')
-rw-r--r-- | linden/indra/newview/llviewernetwork.cpp | 36 | ||||
-rwxr-xr-x | linden/indra/newview/viewer_manifest.py | 99 |
2 files changed, 92 insertions, 43 deletions
diff --git a/linden/indra/newview/llviewernetwork.cpp b/linden/indra/newview/llviewernetwork.cpp index 2b5cc0c..9019b88 100644 --- a/linden/indra/newview/llviewernetwork.cpp +++ b/linden/indra/newview/llviewernetwork.cpp | |||
@@ -110,34 +110,34 @@ void LLViewerLogin::setGridChoice(const std::string& grid_name) | |||
110 | // The string can be: | 110 | // The string can be: |
111 | // - a grid label from the gGridInfo table | 111 | // - a grid label from the gGridInfo table |
112 | // - an ip address | 112 | // - an ip address |
113 | if(!grid_name.empty()) | 113 | if(!grid_name.empty()) |
114 | { | 114 | { |
115 | // find the grid choice from the user setting. | 115 | // find the grid choice from the user setting. |
116 | int grid_index = GRID_INFO_NONE; | 116 | int grid_index = GRID_INFO_NONE; |
117 | for(;grid_index < GRID_INFO_OTHER; ++grid_index) | 117 | for(;grid_index < GRID_INFO_OTHER; ++grid_index) |
118 | { | 118 | { |
119 | if(0 == LLStringUtil::compareInsensitive(gGridInfo[grid_index].mLabel, grid_name)) | 119 | if(0 == LLStringUtil::compareInsensitive(gGridInfo[grid_index].mLabel, grid_name)) |
120 | { | 120 | { |
121 | // Founding a matching label in the list... | 121 | // Founding a matching label in the list... |
122 | setGridChoice((EGridInfo)grid_index); | 122 | setGridChoice((EGridInfo)grid_index); |
123 | break; | 123 | break; |
124 | } | 124 | } |
125 | } | 125 | } |
126 | 126 | ||
127 | if(GRID_INFO_OTHER == grid_index) | 127 | if(GRID_INFO_OTHER == grid_index) |
128 | { | 128 | { |
129 | // *FIX:MEP Can and should we validate that this is an IP address? | 129 | // *FIX:MEP Can and should we validate that this is an IP address? |
130 | mGridChoice = GRID_INFO_OTHER; | 130 | mGridChoice = GRID_INFO_OTHER; |
131 | mGridName = grid_name; | 131 | mGridName = grid_name; |
132 | gSavedSettings.setS32("ServerChoice", mGridChoice); | 132 | gSavedSettings.setS32("ServerChoice", mGridChoice); |
133 | gSavedSettings.setString("CustomServer", mGridName); | 133 | gSavedSettings.setString("CustomServer", mGridName); |
134 | } | 134 | } |
135 | } | 135 | } |
136 | } | 136 | } |
137 | 137 | ||
138 | void LLViewerLogin::resetURIs() | 138 | void LLViewerLogin::resetURIs() |
139 | { | 139 | { |
140 | // Clear URIs when picking a new server | 140 | // Clear URIs when picking a new server |
141 | gSavedSettings.setValue("CmdLineLoginURI", LLSD::emptyArray()); | 141 | gSavedSettings.setValue("CmdLineLoginURI", LLSD::emptyArray()); |
142 | gSavedSettings.setString("CmdLineHelperURI", ""); | 142 | gSavedSettings.setString("CmdLineHelperURI", ""); |
143 | } | 143 | } |
diff --git a/linden/indra/newview/viewer_manifest.py b/linden/indra/newview/viewer_manifest.py index 344eacc..995cb68 100755 --- a/linden/indra/newview/viewer_manifest.py +++ b/linden/indra/newview/viewer_manifest.py | |||
@@ -85,30 +85,60 @@ class ViewerManifest(LLManifest): | |||
85 | self.path("*.txt") | 85 | self.path("*.txt") |
86 | self.end_prefix("fonts") | 86 | self.end_prefix("fonts") |
87 | 87 | ||
88 | # skins | 88 | # skins |
89 | if self.prefix(src="skins"): | 89 | if self.prefix(src="skins"): |
90 | self.path("paths.xml") | 90 | self.path("paths.xml") |
91 | # include the entire textures directory recursively | 91 | |
92 | if self.prefix(src="*/textures"): | 92 | # include the entire textures directory recursively |
93 | self.path("*.tga") | 93 | if self.prefix(src="*/textures"): |
94 | self.path("*.j2c") | 94 | self.path("*.tga") |
95 | self.path("*.jpg") | 95 | self.path("*.j2c") |
96 | self.path("*.png") | 96 | self.path("*.jpg") |
97 | self.path("textures.xml") | 97 | self.path("*.png") |
98 | self.end_prefix("*/textures") | 98 | self.path("textures.xml") |
99 | self.path("*/xui/*/*.xml") | 99 | self.end_prefix("*/textures") |
100 | self.path("*/*.xml") | 100 | |
101 | 101 | self.path("*/xui/*/*.xml") | |
102 | # Local HTML files (e.g. loading screen) | 102 | self.path("*/*.xml") |
103 | if self.prefix(src="*/html"): | 103 | |
104 | self.path("*.png") | 104 | # Local HTML files (e.g. loading screen) |
105 | self.path("*/*/*.html") | 105 | if self.prefix(src="*/html"): |
106 | self.path("*/*/*.gif") | 106 | self.path("*.png") |
107 | self.end_prefix("*/html") | 107 | self.path("*/*/*.html") |
108 | self.end_prefix("skins") | 108 | self.path("*/*/*.gif") |
109 | self.end_prefix("*/html") | ||
110 | |||
111 | self.end_prefix("skins") | ||
112 | |||
109 | self.path("lsl_guide.html") | 113 | self.path("lsl_guide.html") |
110 | self.path("gpu_table.txt") | 114 | self.path("gpu_table.txt") |
111 | 115 | ||
116 | |||
117 | # Gather up the README file, etc. | ||
118 | def gather_documents(self): | ||
119 | # From the top level directory (imprudence) | ||
120 | if self.prefix("../../..", dst=""): | ||
121 | self.path("README.txt") | ||
122 | self.path("MANIFESTO.txt") | ||
123 | self.path("CONTRIBUTE.txt") | ||
124 | self.path("RELEASE_NOTES.txt") | ||
125 | self.path("ChangeLog.txt") | ||
126 | self.end_prefix("../../..") | ||
127 | |||
128 | # From the linden directory | ||
129 | if self.prefix("../..", dst="doc"): | ||
130 | self.path("LICENSE-source.txt") | ||
131 | self.path("LICENSE-logos.txt", "LICENSE-artwork.txt") | ||
132 | self.end_prefix("../..") | ||
133 | |||
134 | # From the linden/doc directory | ||
135 | if self.prefix("../../doc", dst="doc"): | ||
136 | self.path("contributions.txt") | ||
137 | self.path("GPL-license.txt", "GPL.txt") | ||
138 | self.path("FLOSS-exception.txt") | ||
139 | self.end_prefix("../../doc") | ||
140 | |||
141 | |||
112 | def login_channel(self): | 142 | def login_channel(self): |
113 | """Channel reported for login and upgrade purposes ONLY; | 143 | """Channel reported for login and upgrade purposes ONLY; |
114 | used for A/B testing""" | 144 | used for A/B testing""" |
@@ -171,7 +201,13 @@ class WindowsManifest(ViewerManifest): | |||
171 | #'../llkdu/relwithdebinfo/llkdu.dll', | 201 | #'../llkdu/relwithdebinfo/llkdu.dll', |
172 | #'../../libraries/i686-win32/lib/release/llkdu.dll'), | 202 | #'../../libraries/i686-win32/lib/release/llkdu.dll'), |
173 | # dst='llkdu.dll') | 203 | # dst='llkdu.dll') |
174 | self.path(src="licenses-win32.txt", dst="licenses.txt") | 204 | |
205 | self.gather_documents() | ||
206 | |||
207 | if self.prefix("../..", dst="doc"): | ||
208 | self.path("LICENSE-libraries-win32.txt") | ||
209 | self.end_prefix("../..") | ||
210 | |||
175 | 211 | ||
176 | self.path("featuretable.txt") | 212 | self.path("featuretable.txt") |
177 | 213 | ||
@@ -396,7 +432,13 @@ class DarwinManifest(ViewerManifest): | |||
396 | self.path("*.tif") | 432 | self.path("*.tif") |
397 | self.end_prefix("cursors_mac") | 433 | self.end_prefix("cursors_mac") |
398 | 434 | ||
399 | self.path("licenses-mac.txt", dst="licenses.txt") | 435 | # From the linden directory |
436 | if self.prefix("../..", dst="doc"): | ||
437 | self.path("LICENSE-libraries-mac.txt") | ||
438 | self.end_prefix("../..") | ||
439 | |||
440 | self.gather_documents() | ||
441 | |||
400 | self.path("featuretable_mac.txt") | 442 | self.path("featuretable_mac.txt") |
401 | self.path("SecondLife.nib") | 443 | self.path("SecondLife.nib") |
402 | 444 | ||
@@ -535,16 +577,23 @@ class DarwinManifest(ViewerManifest): | |||
535 | class LinuxManifest(ViewerManifest): | 577 | class LinuxManifest(ViewerManifest): |
536 | def construct(self): | 578 | def construct(self): |
537 | super(LinuxManifest, self).construct() | 579 | super(LinuxManifest, self).construct() |
538 | self.path("licenses-linux.txt","licenses.txt") | 580 | |
539 | self.path("res/imprudence_icon.png","imprudence_icon.png") | 581 | self.path("res/imprudence_icon.png","imprudence_icon.png") |
540 | if self.prefix("linux_tools", dst=""): | 582 | if self.prefix("linux_tools", dst=""): |
541 | self.path("client-readme.txt","README-linux.txt") | 583 | #self.path("client-readme.txt","README-linux.txt") |
542 | #self.path("client-readme-voice.txt","README-linux-voice.txt") | 584 | #self.path("client-readme-voice.txt","README-linux-voice.txt") |
543 | self.path("wrapper.sh","imprudence") | 585 | self.path("wrapper.sh","imprudence") |
544 | self.path("handle_secondlifeprotocol.sh") | 586 | self.path("handle_secondlifeprotocol.sh") |
545 | self.path("register_secondlifeprotocol.sh") | 587 | self.path("register_secondlifeprotocol.sh") |
546 | self.end_prefix("linux_tools") | 588 | self.end_prefix("linux_tools") |
547 | 589 | ||
590 | self.gather_documents() | ||
591 | |||
592 | # From the linden directory | ||
593 | if self.prefix("../..", dst="doc"): | ||
594 | self.path("LICENSE-libraries-linux.txt") | ||
595 | self.end_prefix("../..") | ||
596 | |||
548 | # Create an appropriate gridargs.dat for this package, denoting required grid. | 597 | # Create an appropriate gridargs.dat for this package, denoting required grid. |
549 | self.put_in_file(self.flags_list(), 'gridargs.dat') | 598 | self.put_in_file(self.flags_list(), 'gridargs.dat') |
550 | 599 | ||