diff options
author | Jacek Antonelli | 2009-11-19 04:19:06 -0600 |
---|---|---|
committer | Jacek Antonelli | 2009-11-19 04:19:06 -0600 |
commit | 1d443b7a94ed6f9ef1d408caef72fcbc0b1ee427 (patch) | |
tree | e09ccbc010e326a48fd91ba15b58afd7fb836b3f /linden/scripts | |
parent | Fixed minor formatting issue in MANIFESTO.txt. (diff) | |
parent | Fixed CMake setting errors (diff) | |
download | meta-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-x | linden/scripts/install.py | 75 | ||||
-rw-r--r-- | linden/scripts/messages/message_template.msg | 26 | ||||
-rwxr-xr-x | linden/scripts/setup-path.py | 3 | ||||
-rwxr-xr-x | linden/scripts/template_verifier.py | 40 |
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 | ||
36 | import sys | ||
37 | import 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 | |||
45 | def 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 | |||
64 | base_dir = add_indra_lib_path() | ||
65 | |||
36 | import copy | 66 | import copy |
37 | from hashlib import md5 | 67 | from hashlib import md5 |
38 | import optparse | 68 | import optparse |
@@ -40,26 +70,26 @@ import os | |||
40 | import platform | 70 | import platform |
41 | import pprint | 71 | import pprint |
42 | import shutil | 72 | import shutil |
43 | import sys | ||
44 | import tarfile | 73 | import tarfile |
45 | import tempfile | 74 | import tempfile |
46 | import urllib2 | 75 | import urllib2 |
47 | import urlparse | 76 | import urlparse |
48 | 77 | ||
49 | # Locate -our- python library relative to our install location. | ||
50 | from os.path import realpath, dirname, join | ||
51 | |||
52 | # Walk back to checkout base directory | ||
53 | base_dir = dirname(dirname(realpath(__file__))) | ||
54 | # Walk in to libraries directory | ||
55 | lib_dir = join(join(join(base_dir, 'indra'), 'lib'), 'python') | ||
56 | |||
57 | if lib_dir not in sys.path: | ||
58 | sys.path.insert(0, lib_dir) | ||
59 | |||
60 | from indra.base import llsd | 78 | from indra.base import llsd |
61 | from indra.util import helpformatter | 79 | from 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 | ||
83 | try: | ||
84 | sorted = sorted | ||
85 | except 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 | |||
63 | class InstallFile(object): | 93 | class 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 | ||
764 | def _getuser(): | 783 | def _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 | |||
19 | There are special exceptions to the terms and conditions of the GPL as | 19 | There are special exceptions to the terms and conditions of the GPL as |
20 | it is applied to this Source Code. View the full text of the exception | 20 | it is applied to this Source Code. View the full text of the exception |
21 | in the file doc/FLOSS-exception.txt in this software distribution, or | 21 | in the file doc/FLOSS-exception.txt in this software distribution, or |
22 | online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | 22 | online at |
23 | http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
23 | 24 | ||
24 | By copying, modifying or distributing this software, you acknowledge | 25 | By copying, modifying or distributing this software, you acknowledge |
25 | that you have read and understood your obligations described above, | 26 | that 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 | |||
18 | There are special exceptions to the terms and conditions of the GPL as | 18 | There are special exceptions to the terms and conditions of the GPL as |
19 | it is applied to this Source Code. View the full text of the exception | 19 | it is applied to this Source Code. View the full text of the exception |
20 | in the file doc/FLOSS-exception.txt in this software distribution, or | 20 | in the file doc/FLOSS-exception.txt in this software distribution, or |
21 | online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | 21 | online at |
22 | http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
22 | 23 | ||
23 | By copying, modifying or distributing this software, you acknowledge | 24 | By copying, modifying or distributing this software, you acknowledge |
24 | that you have read and understood your obligations described above, | 25 | that 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 | ||
50 | root = os.path.abspath(__file__) | 51 | def add_indra_lib_path(): |
51 | # always insert the directory of the script in the search path | 52 | root = os.path.realpath(__file__) |
52 | dir = os.path.dirname(root) | 53 | # always insert the directory of the script in the search path |
53 | if 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 | |
57 | while 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) |
64 | else: | 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 | |||
70 | add_indra_lib_path() | ||
67 | 71 | ||
68 | import optparse | 72 | import optparse |
69 | import os | 73 | import os |