summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2011-08-05 18:35:30 -0400
committerOz Linden <oz@lindenlab.com>2011-08-05 18:35:30 -0400
commit1ccb5f855c46999259c3a755a71917cddd50df28 (patch)
tree6f94b435840af7d89b466d3c2f95d429439fdbe7
parentfc0d74a1fe639a679025bb18a1d18a08fd87b3bc (diff)
add reading Linden names at build time from enviroment-specified file
-rw-r--r--indra/newview/viewer_manifest.py17
1 files changed, 15 insertions, 2 deletions
diff --git a/indra/newview/viewer_manifest.py b/indra/newview/viewer_manifest.py
index bd0193e0f6..d81809b3a5 100644
--- a/indra/newview/viewer_manifest.py
+++ b/indra/newview/viewer_manifest.py
@@ -63,12 +63,25 @@ class ViewerManifest(LLManifest):
# include the entire shaders directory recursively
self.path("shaders")
- # inclue the extracted lists of contributors
+ # include the extracted list of contributors
contributor_names = self.extract_names("../../doc/contributions.txt")
self.put_in_file(contributor_names, "contributors.txt")
- # inclue the extracted lists of translators
+ # include the extracted list of translators
translator_names = self.extract_names("../../doc/translations.txt")
self.put_in_file(translator_names, "translators.txt")
+ # include the list of Lindens (if any)
+ # see https://wiki.lindenlab.com/wiki/Generated_Linden_Credits
+ linden_names_path = os.getenv("linden_credits")
+ if linden_names_path :
+ try:
+ linden_file = open(linden_names_path,'r')
+ linden_names = linden_file.readlines() # all names are on one line
+ self.put_in_file(linden_names, "lindens.txt")
+ linden_file.close()
+ except IOError:
+ print "No Linden names found at '%s', using built-in list" % linden_names_path
+ pass
+
# ... and the entire windlight directory
self.path("windlight")
self.end_prefix("app_settings")