aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/scripts/install.py
diff options
context:
space:
mode:
Diffstat (limited to 'linden/scripts/install.py')
-rwxr-xr-xlinden/scripts/install.py49
1 files changed, 45 insertions, 4 deletions
diff --git a/linden/scripts/install.py b/linden/scripts/install.py
index a7c0a48..1e2bccb 100755
--- a/linden/scripts/install.py
+++ b/linden/scripts/install.py
@@ -565,6 +565,7 @@ windows/i686/vs/2003 -- specify a windows visual studio 2003 package"""
565 tar.extractall(path=install_dir) 565 tar.extractall(path=install_dir)
566 except AttributeError: 566 except AttributeError:
567 _extractall(tar, path=install_dir) 567 _extractall(tar, path=install_dir)
568
568 symlinks = [] 569 symlinks = []
569 if _get_platform() == 'linux' or _get_platform() == 'linux64': 570 if _get_platform() == 'linux' or _get_platform() == 'linux64':
570 first = 1 571 first = 1
@@ -591,6 +592,46 @@ windows/i686/vs/2003 -- specify a windows visual studio 2003 package"""
591 os.symlink(target, link_name) 592 os.symlink(target, link_name)
592 symlinks += [LINK] 593 symlinks += [LINK]
593 print " %s --> %s" % (LINK, target) 594 print " %s --> %s" % (LINK, target)
595
596 # Reroute autobuilds
597 auto_name = install_dir + "/include"
598 if os.path.exists(auto_name):
599 print "Moving autobuilt include files to legacy locations."
600 for entry in os.listdir(auto_name):
601 os.rename(auto_name + "/" + entry, install_dir + "/libraries/include/" + entry)
602 os.rmdir(auto_name)
603
604 auto_name = install_dir + "/lib"
605 dest_name = ''
606 if _get_platform() == 'darwin':
607 dest_name = 'universal-darwin/'
608 if _get_platform() == 'linux64':
609 dest_name = 'x86_64-linux/'
610 if _get_platform() == 'linux':
611 dest_name = 'i686-linux/'
612 if _get_platform() == 'windows':
613 dest_name = 'i686-win32/'
614 if os.path.exists(auto_name):
615 print "Moving autobuilt lib files to legacy locations."
616 for entry in os.listdir(auto_name):
617 if os.path.isdir(auto_name + "/" + entry):
618 path = install_dir + "/libraries/" + dest_name + "lib_" + entry
619 if entry == 'release':
620 # Linux is special, coz it's got server code.
621 if _get_platform() == 'linux' or _get_platform() == 'linux64':
622 path = install_dir + "/libraries/" + dest_name + "lib_" + entry + "_client"
623 # Windows is also special.
624 if _get_platform() == 'windows':
625 path = install_dir + "/libraries/" + dest_name + "lib/" + entry
626 if not os.path.exists(path):
627 os.makedirs(path)
628 for filename in os.listdir(auto_name + "/" + entry):
629 os.rename(auto_name + "/" + entry + "/" + filename, path + "/" + filename)
630 os.rmdir(auto_name + "/" + entry)
631 else:
632 os.rename(auto_name + "/" + entry, install_dir + "/libraries/" + dest_name + "lib/" + entry)
633 os.rmdir(auto_name)
634
594 if ifile.pkgname in self._installed: 635 if ifile.pkgname in self._installed:
595 self._installed[ifile.pkgname].add_files( 636 self._installed[ifile.pkgname].add_files(
596 ifile.url, 637 ifile.url,
@@ -830,10 +871,10 @@ def _default_installable_cache():
830 """In general, the installable files do not change much, so find a 871 """In general, the installable files do not change much, so find a
831 host/user specific location to cache files.""" 872 host/user specific location to cache files."""
832 user = _getuser() 873 user = _getuser()
833 cache_dir = "/var/tmp/%s/install.cache" % user 874 if sys.platform != 'cygwin' and _get_platform() == 'windows':
834 if _get_platform() == 'windows': 875 cache_dir = os.path.join(tempfile.gettempdir(), 'install.cache.%s' % user)
835 cache_dir = os.path.join(tempfile.gettempdir(), \ 876 else:
836 'install.cache.%s' % user) 877 cache_dir = "/var/tmp/%s/install.cache" % user
837 return cache_dir 878 return cache_dir
838 879
839def parse_args(): 880def parse_args():