aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/viewer_manifest.py
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/viewer_manifest.py')
-rwxr-xr-xlinden/indra/newview/viewer_manifest.py106
1 files changed, 75 insertions, 31 deletions
diff --git a/linden/indra/newview/viewer_manifest.py b/linden/indra/newview/viewer_manifest.py
index 887dacd..62c9537 100755
--- a/linden/indra/newview/viewer_manifest.py
+++ b/linden/indra/newview/viewer_manifest.py
@@ -75,30 +75,60 @@ class ViewerManifest(LLManifest):
75 self.path("*.txt") 75 self.path("*.txt")
76 self.end_prefix("fonts") 76 self.end_prefix("fonts")
77 77
78 # skins 78 # skins
79 if self.prefix(src="skins"): 79 if self.prefix(src="skins"):
80 self.path("paths.xml") 80 self.path("paths.xml")
81 # include the entire textures directory recursively 81
82 if self.prefix(src="*/textures"): 82 # include the entire textures directory recursively
83 self.path("*.tga") 83 if self.prefix(src="*/textures"):
84 self.path("*.j2c") 84 self.path("*.tga")
85 self.path("*.jpg") 85 self.path("*.j2c")
86 self.path("*.png") 86 self.path("*.jpg")
87 self.path("textures.xml") 87 self.path("*.png")
88 self.end_prefix("*/textures") 88 self.path("textures.xml")
89 self.path("*/xui/*/*.xml") 89 self.end_prefix("*/textures")
90 self.path("*/*.xml") 90
91 91 self.path("*/xui/*/*.xml")
92 # Local HTML files (e.g. loading screen) 92 self.path("*/*.xml")
93 if self.prefix(src="*/html"): 93
94 self.path("*.png") 94 # Local HTML files (e.g. loading screen)
95 self.path("*/*/*.html") 95 if self.prefix(src="*/html"):
96 self.path("*/*/*.gif") 96 self.path("*.png")
97 self.end_prefix("*/html") 97 self.path("*/*/*.html")
98 self.end_prefix("skins") 98 self.path("*/*/*.gif")
99 self.end_prefix("*/html")
100
101 self.end_prefix("skins")
102
99 self.path("lsl_guide.html") 103 self.path("lsl_guide.html")
100 self.path("gpu_table.txt") 104 self.path("gpu_table.txt")
101 105
106
107 # Gather up the README file, etc.
108 def gather_documents(self):
109 # From the top level directory (imprudence)
110 if self.prefix("../../..", dst=""):
111 self.path("README.txt")
112 self.path("MANIFESTO.txt")
113 self.path("CONTRIBUTE.txt")
114 self.path("RELEASE_NOTES.txt")
115 self.path("ChangeLog.txt")
116 self.end_prefix("../../..")
117
118 # From the linden directory
119 if self.prefix("../..", dst="doc"):
120 self.path("LICENSE-source.txt")
121 self.path("LICENSE-logos.txt", "LICENSE-artwork.txt")
122 self.end_prefix("../..")
123
124 # From the linden/doc directory
125 if self.prefix("../../doc", dst="doc"):
126 self.path("contributions.txt")
127 self.path("GPL-license.txt", "GPL.txt")
128 self.path("FLOSS-exception.txt")
129 self.end_prefix("../../doc")
130
131
102 def login_channel(self): 132 def login_channel(self):
103 """Channel reported for login and upgrade purposes ONLY; 133 """Channel reported for login and upgrade purposes ONLY;
104 used for A/B testing""" 134 used for A/B testing"""
@@ -161,7 +191,13 @@ class WindowsManifest(ViewerManifest):
161 #'../llkdu/relwithdebinfo/llkdu.dll', 191 #'../llkdu/relwithdebinfo/llkdu.dll',
162 #'../../libraries/i686-win32/lib/release/llkdu.dll'), 192 #'../../libraries/i686-win32/lib/release/llkdu.dll'),
163 # dst='llkdu.dll') 193 # dst='llkdu.dll')
164 self.path(src="licenses-win32.txt", dst="licenses.txt") 194
195 self.gather_documents()
196
197 if self.prefix("../..", dst="doc"):
198 self.path("LICENSE-libraries-win32.txt")
199 self.end_prefix("../..")
200
165 201
166 self.path("featuretable.txt") 202 self.path("featuretable.txt")
167 203
@@ -386,16 +422,17 @@ class DarwinManifest(ViewerManifest):
386 self.path("*.tif") 422 self.path("*.tif")
387 self.end_prefix("cursors_mac") 423 self.end_prefix("cursors_mac")
388 424
389 self.path("licenses-mac.txt", dst="licenses.txt") 425 # From the linden directory
426 if self.prefix("../..", dst="doc"):
427 self.path("LICENSE-libraries-mac.txt")
428 self.end_prefix("../..")
429
430 self.gather_documents()
431
390 self.path("featuretable_mac.txt") 432 self.path("featuretable_mac.txt")
391 self.path("SecondLife.nib") 433 self.path("SecondLife.nib")
392 434
393 # If we are not using the default channel, use the 'Firstlook 435 self.path("secondlife.icns")
394 # icon' to show that it isn't a stable release.
395 if self.default_channel() and self.default_grid():
396 self.path("secondlife.icns")
397 else:
398 self.path("secondlife_firstlook.icns", "secondlife.icns")
399 436
400 # Translations 437 # Translations
401 self.path("English.lproj") 438 self.path("English.lproj")
@@ -530,16 +567,23 @@ class DarwinManifest(ViewerManifest):
530class LinuxManifest(ViewerManifest): 567class LinuxManifest(ViewerManifest):
531 def construct(self): 568 def construct(self):
532 super(LinuxManifest, self).construct() 569 super(LinuxManifest, self).construct()
533 self.path("licenses-linux.txt","licenses.txt") 570
534 self.path("res/imprudence_icon.png","imprudence_icon.png") 571 self.path("res/imprudence_icon.png","imprudence_icon.png")
535 if self.prefix("linux_tools", dst=""): 572 if self.prefix("linux_tools", dst=""):
536 self.path("client-readme.txt","README-linux.txt") 573 #self.path("client-readme.txt","README-linux.txt")
537 #self.path("client-readme-voice.txt","README-linux-voice.txt") 574 #self.path("client-readme-voice.txt","README-linux-voice.txt")
538 self.path("wrapper.sh","imprudence") 575 self.path("wrapper.sh","imprudence")
539 self.path("handle_secondlifeprotocol.sh") 576 self.path("handle_secondlifeprotocol.sh")
540 self.path("register_secondlifeprotocol.sh") 577 self.path("register_secondlifeprotocol.sh")
541 self.end_prefix("linux_tools") 578 self.end_prefix("linux_tools")
542 579
580 self.gather_documents()
581
582 # From the linden directory
583 if self.prefix("../..", dst="doc"):
584 self.path("LICENSE-libraries-linux.txt")
585 self.end_prefix("../..")
586
543 # Create an appropriate gridargs.dat for this package, denoting required grid. 587 # Create an appropriate gridargs.dat for this package, denoting required grid.
544 self.put_in_file(self.flags_list(), 'gridargs.dat') 588 self.put_in_file(self.flags_list(), 'gridargs.dat')
545 589