aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/scripts
diff options
context:
space:
mode:
authorJacek Antonelli2009-11-19 04:19:06 -0600
committerJacek Antonelli2009-11-19 04:19:06 -0600
commit1d443b7a94ed6f9ef1d408caef72fcbc0b1ee427 (patch)
treee09ccbc010e326a48fd91ba15b58afd7fb836b3f /linden/scripts
parentFixed minor formatting issue in MANIFESTO.txt. (diff)
parentFixed CMake setting errors (diff)
downloadmeta-impy-1d443b7a94ed6f9ef1d408caef72fcbc0b1ee427.zip
meta-impy-1d443b7a94ed6f9ef1d408caef72fcbc0b1ee427.tar.gz
meta-impy-1d443b7a94ed6f9ef1d408caef72fcbc0b1ee427.tar.bz2
meta-impy-1d443b7a94ed6f9ef1d408caef72fcbc0b1ee427.tar.xz
Merge remote branch 'mccabe/1.3.0-next' into next
Conflicts: linden/indra/cmake/00-Common.cmake linden/indra/newview/skins/default/xui/de/floater_about.xml linden/indra/newview/skins/default/xui/fr/floater_about.xml linden/indra/newview/skins/default/xui/ja/floater_about.xml linden/indra/newview/skins/default/xui/ko/floater_about.xml linden/indra/newview/skins/default/xui/zh/floater_about.xml linden/install.xml
Diffstat (limited to 'linden/scripts')
-rwxr-xr-xlinden/scripts/install.py75
-rw-r--r--linden/scripts/messages/message_template.msg26
-rwxr-xr-xlinden/scripts/setup-path.py3
-rwxr-xr-xlinden/scripts/template_verifier.py40
4 files changed, 96 insertions, 48 deletions
diff --git a/linden/scripts/install.py b/linden/scripts/install.py
index 3843c83..1db9bb3 100755
--- a/linden/scripts/install.py
+++ b/linden/scripts/install.py
@@ -33,6 +33,36 @@ THE SOFTWARE.
33$/LicenseInfo$ 33$/LicenseInfo$
34""" 34"""
35 35
36import sys
37import os.path
38
39# Look for indra/lib/python in all possible parent directories ...
40# This is an improvement over the setup-path.py method used previously:
41# * the script may blocated anywhere inside the source tree
42# * it doesn't depend on the current directory
43# * it doesn't depend on another file being present.
44
45def add_indra_lib_path():
46 root = os.path.realpath(__file__)
47 # always insert the directory of the script in the search path
48 dir = os.path.dirname(root)
49 if dir not in sys.path:
50 sys.path.insert(0, dir)
51
52 # Now go look for indra/lib/python in the parent dies
53 while root != os.path.sep:
54 root = os.path.dirname(root)
55 dir = os.path.join(root, 'indra', 'lib', 'python')
56 if os.path.isdir(dir):
57 if dir not in sys.path:
58 sys.path.insert(0, dir)
59 return root
60 else:
61 print >>sys.stderr, "This script is not inside a valid installation."
62 sys.exit(1)
63
64base_dir = add_indra_lib_path()
65
36import copy 66import copy
37from hashlib import md5 67from hashlib import md5
38import optparse 68import optparse
@@ -40,26 +70,26 @@ import os
40import platform 70import platform
41import pprint 71import pprint
42import shutil 72import shutil
43import sys
44import tarfile 73import tarfile
45import tempfile 74import tempfile
46import urllib2 75import urllib2
47import urlparse 76import urlparse
48 77
49# Locate -our- python library relative to our install location.
50from os.path import realpath, dirname, join
51
52# Walk back to checkout base directory
53base_dir = dirname(dirname(realpath(__file__)))
54# Walk in to libraries directory
55lib_dir = join(join(join(base_dir, 'indra'), 'lib'), 'python')
56
57if lib_dir not in sys.path:
58 sys.path.insert(0, lib_dir)
59
60from indra.base import llsd 78from indra.base import llsd
61from indra.util import helpformatter 79from indra.util import helpformatter
62 80
81# *HACK: Necessary for python 2.3. Consider removing this code wart
82# after etch has deployed everywhere. 2008-12-23 Phoenix
83try:
84 sorted = sorted
85except NameError:
86 def sorted(in_list):
87 "Return a list which is a sorted copy of in_list."
88 # Copy the source to be more functional and side-effect free.
89 out_list = copy.copy(in_list)
90 out_list.sort()
91 return out_list
92
63class InstallFile(object): 93class InstallFile(object):
64 "This is just a handy way to throw around details on a file in memory." 94 "This is just a handy way to throw around details on a file in memory."
65 def __init__(self, pkgname, url, md5sum, cache_dir, platform_path): 95 def __init__(self, pkgname, url, md5sum, cache_dir, platform_path):
@@ -289,7 +319,7 @@ class Installer(object):
289 319
290 def list_installables(self): 320 def list_installables(self):
291 "Return a list of all known installables." 321 "Return a list of all known installables."
292 return self._installables.keys() 322 return sorted(self._installables.keys())
293 323
294 def detail_installable(self, name): 324 def detail_installable(self, name):
295 "Return a installable definition detail" 325 "Return a installable definition detail"
@@ -297,7 +327,7 @@ class Installer(object):
297 327
298 def list_licenses(self): 328 def list_licenses(self):
299 "Return a list of all known licenses." 329 "Return a list of all known licenses."
300 return self._licenses.keys() 330 return sorted(self._licenses.keys())
301 331
302 def detail_license(self, name): 332 def detail_license(self, name):
303 "Return a license definition detail" 333 "Return a license definition detail"
@@ -305,7 +335,7 @@ class Installer(object):
305 335
306 def list_installed(self): 336 def list_installed(self):
307 "Return a list of installed packages." 337 "Return a list of installed packages."
308 return self._installed.keys() 338 return sorted(self._installed.keys())
309 339
310 def detail_installed(self, name): 340 def detail_installed(self, name):
311 "Return file list for specific installed package." 341 "Return file list for specific installed package."
@@ -748,17 +778,6 @@ def _get_platform():
748 # os/arch/compiler/compiler_version then we can replace the 778 # os/arch/compiler/compiler_version then we can replace the
749 # 'linux64' platform with 'linux/x86_64/gcc/4.1' 779 # 'linux64' platform with 'linux/x86_64/gcc/4.1'
750 this_platform = 'linux64' 780 this_platform = 'linux64'
751 else:
752 gcc_version = os.popen("g++ -dumpversion", 'r').read()[:-3]
753 if gcc_version == '4.1':
754 # the 'linux32' platform is a HACK until we can figure
755 # out how to make the install.py script accept a platform of
756 # the form os/arch/compiler/compiler_version for the download
757 # and extract stage
758 #this_platform = 'linux/i686/gcc/4.1'
759 # NOTE: disabled linux32 as it hasn't been tested well
760 #this_platform = 'linux32'
761 this_platform = this_platform
762 return this_platform 781 return this_platform
763 782
764def _getuser(): 783def _getuser():
@@ -830,13 +849,13 @@ darwin/universal/gcc/4.0
830 parser.add_option( 849 parser.add_option(
831 '--install-manifest', 850 '--install-manifest',
832 type='string', 851 type='string',
833 default=join(base_dir, 'install.xml'), 852 default=os.path.join(base_dir, 'install.xml'),
834 dest='install_filename', 853 dest='install_filename',
835 help='The file used to describe what should be installed.') 854 help='The file used to describe what should be installed.')
836 parser.add_option( 855 parser.add_option(
837 '--installed-manifest', 856 '--installed-manifest',
838 type='string', 857 type='string',
839 default=join(base_dir, 'installed.xml'), 858 default=os.path.join(base_dir, 'installed.xml'),
840 dest='installed_filename', 859 dest='installed_filename',
841 help='The file used to record what is installed.') 860 help='The file used to record what is installed.')
842 parser.add_option( 861 parser.add_option(
diff --git a/linden/scripts/messages/message_template.msg b/linden/scripts/messages/message_template.msg
index 4a16cf8..0dee61a 100644
--- a/linden/scripts/messages/message_template.msg
+++ b/linden/scripts/messages/message_template.msg
@@ -619,6 +619,7 @@ version 2.0
619 { SnapshotID LLUUID } 619 { SnapshotID LLUUID }
620 { Dwell F32 } 620 { Dwell F32 }
621 { Price S32 } 621 { Price S32 }
622 //{ ProductSKU Variable 1 }
622 } 623 }
623} 624}
624 625
@@ -723,6 +724,10 @@ version 2.0
723 { Auction BOOL } 724 { Auction BOOL }
724 { Dwell F32 } 725 { Dwell F32 }
725 } 726 }
727 {
728 StatusData Variable
729 { Status U32 }
730 }
726} 731}
727 732
728// DirPeopleReply 733// DirPeopleReply
@@ -767,6 +772,10 @@ version 2.0
767 { UnixTime U32 } 772 { UnixTime U32 }
768 { EventFlags U32 } 773 { EventFlags U32 }
769 } 774 }
775 {
776 StatusData Variable
777 { Status U32 }
778 }
770} 779}
771 780
772// DirGroupsReply 781// DirGroupsReply
@@ -852,6 +861,10 @@ version 2.0
852 { ExpirationDate U32 } 861 { ExpirationDate U32 }
853 { PriceForListing S32 } 862 { PriceForListing S32 }
854 } 863 }
864 {
865 StatusData Variable
866 { Status U32 }
867 }
855} 868}
856 869
857 870
@@ -1053,6 +1066,7 @@ version 2.0
1053 { ForSale BOOL } 1066 { ForSale BOOL }
1054 { SalePrice S32 } 1067 { SalePrice S32 }
1055 { ActualArea S32 } 1068 { ActualArea S32 }
1069 //{ ProductSKU Variable 1 }
1056 } 1070 }
1057} 1071}
1058 1072
@@ -1465,7 +1479,7 @@ version 2.0
1465 } 1479 }
1466} 1480}
1467 1481
1468// TeleportFailed somehwere->sim->viewer 1482// TeleportFailed somewhere->sim->viewer
1469// announce failure of teleport request 1483// announce failure of teleport request
1470{ 1484{
1471 TeleportFailed Low 74 Trusted Unencoded 1485 TeleportFailed Low 74 Trusted Unencoded
@@ -1474,6 +1488,11 @@ version 2.0
1474 { AgentID LLUUID } 1488 { AgentID LLUUID }
1475 { Reason Variable 1 } // string 1489 { Reason Variable 1 } // string
1476 } 1490 }
1491 {
1492 AlertInfo Variable
1493 { Message Variable 1 } // string id
1494 { ExtraParams Variable 1 } // llsd extra parameters
1495 }
1477} 1496}
1478 1497
1479 1498
@@ -2810,6 +2829,11 @@ version 2.0
2810 AlertData Single 2829 AlertData Single
2811 { Message Variable 1 } 2830 { Message Variable 1 }
2812 } 2831 }
2832 {
2833 AlertInfo Variable
2834 { Message Variable 1 }
2835 { ExtraParams Variable 1 }
2836 }
2813} 2837}
2814 2838
2815// Send an AlertMessage to the named agent. 2839// Send an AlertMessage to the named agent.
diff --git a/linden/scripts/setup-path.py b/linden/scripts/setup-path.py
index 7a73dad..157bda0 100755
--- a/linden/scripts/setup-path.py
+++ b/linden/scripts/setup-path.py
@@ -19,7 +19,8 @@ online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
19There are special exceptions to the terms and conditions of the GPL as 19There are special exceptions to the terms and conditions of the GPL as
20it is applied to this Source Code. View the full text of the exception 20it is applied to this Source Code. View the full text of the exception
21in the file doc/FLOSS-exception.txt in this software distribution, or 21in the file doc/FLOSS-exception.txt in this software distribution, or
22online at http://secondlifegrid.net/programs/open_source/licensing/flossexception 22online at
23http://secondlifegrid.net/programs/open_source/licensing/flossexception
23 24
24By copying, modifying or distributing this software, you acknowledge 25By copying, modifying or distributing this software, you acknowledge
25that you have read and understood your obligations described above, 26that you have read and understood your obligations described above,
diff --git a/linden/scripts/template_verifier.py b/linden/scripts/template_verifier.py
index de9a444..8bb5e1d 100755
--- a/linden/scripts/template_verifier.py
+++ b/linden/scripts/template_verifier.py
@@ -18,7 +18,8 @@ online at http://secondlifegrid.net/programs/open_source/licensing/gplv2
18There are special exceptions to the terms and conditions of the GPL as 18There are special exceptions to the terms and conditions of the GPL as
19it is applied to this Source Code. View the full text of the exception 19it is applied to this Source Code. View the full text of the exception
20in the file doc/FLOSS-exception.txt in this software distribution, or 20in the file doc/FLOSS-exception.txt in this software distribution, or
21online at http://secondlifegrid.net/programs/open_source/licensing/flossexception 21online at
22http://secondlifegrid.net/programs/open_source/licensing/flossexception
22 23
23By copying, modifying or distributing this software, you acknowledge 24By copying, modifying or distributing this software, you acknowledge
24that you have read and understood your obligations described above, 25that you have read and understood your obligations described above,
@@ -47,23 +48,26 @@ import os.path
47# * it doesn't depend on the current directory 48# * it doesn't depend on the current directory
48# * it doesn't depend on another file being present. 49# * it doesn't depend on another file being present.
49 50
50root = os.path.abspath(__file__) 51def add_indra_lib_path():
51# always insert the directory of the script in the search path 52 root = os.path.realpath(__file__)
52dir = os.path.dirname(root) 53 # always insert the directory of the script in the search path
53if dir not in sys.path: 54 dir = os.path.dirname(root)
54 sys.path.insert(0, dir) 55 if dir not in sys.path:
55 56 sys.path.insert(0, dir)
56# Now go look for indra/lib/python in the parent dies 57
57while root != os.path.sep: 58 # Now go look for indra/lib/python in the parent dies
58 root = os.path.dirname(root) 59 while root != os.path.sep:
59 dir = os.path.join(root, 'indra', 'lib', 'python') 60 root = os.path.dirname(root)
60 if os.path.isdir(dir): 61 dir = os.path.join(root, 'indra', 'lib', 'python')
61 if dir not in sys.path: 62 if os.path.isdir(dir):
62 sys.path.insert(0, dir) 63 if dir not in sys.path:
63 break 64 sys.path.insert(0, dir)
64else: 65 break
65 print >>sys.stderr, "This script is not inside a valid installation." 66 else:
66 sys.exit(1) 67 print >>sys.stderr, "This script is not inside a valid installation."
68 sys.exit(1)
69
70add_indra_lib_path()
67 71
68import optparse 72import optparse
69import os 73import os