diff options
Diffstat (limited to '')
-rwxr-xr-x | linden/indra/newview/linux_tools/getvoice.sh | 5 | ||||
-rwxr-xr-x | linden/indra/newview/linux_tools/wrapper.sh | 8 |
2 files changed, 7 insertions, 6 deletions
diff --git a/linden/indra/newview/linux_tools/getvoice.sh b/linden/indra/newview/linux_tools/getvoice.sh index 13b632f..afebda9 100755 --- a/linden/indra/newview/linux_tools/getvoice.sh +++ b/linden/indra/newview/linux_tools/getvoice.sh | |||
@@ -3,8 +3,9 @@ | |||
3 | SCRIPTSRC=`readlink -f "$0" || echo "$0"` | 3 | SCRIPTSRC=`readlink -f "$0" || echo "$0"` |
4 | RUN_PATH=`dirname "${SCRIPTSRC}" || echo .` | 4 | RUN_PATH=`dirname "${SCRIPTSRC}" || echo .` |
5 | 5 | ||
6 | #if mozilla-runtime-linux-x86_64 is present we are using 64bit Imprudence on 64bit Linux | 6 | BINARY_SYSTEM=$(expr match "$(file -b /bin/uname)" '\(.*executable\)') |
7 | if [ -d "${RUN_PATH}/app_settings/mozilla-runtime-linux-x86_64/" ]; then | 7 | BINARY_VIEWER=$(expr match "$(file -b ${RUN_PATH}/bin/do-not-directly-run-imprudence-bin)" '\(.*executable\)') |
8 | if ( [ "$BINARY_SYSTEM" == "ELF 64-bit LSB executable" ] && [ "$BINARY_VIEWER" == "ELF 64-bit LSB executable" ] ); then | ||
8 | LIB_INSTALLDIR="lib32/" # It's 32bit voice on 64bit Linux and 64bit viewer. Not using lib/ for avoiding ambiguity. | 9 | LIB_INSTALLDIR="lib32/" # It's 32bit voice on 64bit Linux and 64bit viewer. Not using lib/ for avoiding ambiguity. |
9 | else | 10 | else |
10 | LIB_INSTALLDIR="lib/" # It's 32bit voice on 32 or 64bit Linux and 32bit viewer. | 11 | LIB_INSTALLDIR="lib/" # It's 32bit voice on 32 or 64bit Linux and 32bit viewer. |
diff --git a/linden/indra/newview/linux_tools/wrapper.sh b/linden/indra/newview/linux_tools/wrapper.sh index bc2c127..8c47434 100755 --- a/linden/indra/newview/linux_tools/wrapper.sh +++ b/linden/indra/newview/linux_tools/wrapper.sh | |||
@@ -106,13 +106,13 @@ if [ -n "$LL_TCMALLOC" ]; then | |||
106 | fi | 106 | fi |
107 | fi | 107 | fi |
108 | fi | 108 | fi |
109 | 109 | BINARY_SYSTEM=$(expr match "$(file -b /bin/uname)" '\(.*executable\)') | |
110 | if([ "`uname -m`" = "x86_64" ] && [ -d "${RUN_PATH}/app_settings/mozilla-runtime-linux-x86_64/" ]); then | 110 | BINARY_VIEWER=$(expr match "$(file -b ${RUN_PATH}/bin/do-not-directly-run-imprudence-bin)" '\(.*executable\)') |
111 | export GST_PLUGIN_PATH="${GST_PLUGIN_PATH}:${RUN_PATH}/lib64/gstreamer-plugins/" | 111 | echo "viewer: $BINARY_VIEWER system: $BINARY_SYSTEM" |
112 | if ( [ "$BINARY_SYSTEM" == "ELF 64-bit LSB executable" ] && [ "$BINARY_VIEWER" == "ELF 64-bit LSB executable" ] ); then | ||
112 | 113 | ||
113 | export SL_ENV='LD_LIBRARY_PATH="`pwd`"/lib64:"`pwd`"/lib32:"`pwd`"/app_settings/mozilla-runtime-linux-x86_64:"${LD_LIBRARY_PATH}"' | 114 | export SL_ENV='LD_LIBRARY_PATH="`pwd`"/lib64:"`pwd`"/lib32:"`pwd`"/app_settings/mozilla-runtime-linux-x86_64:"${LD_LIBRARY_PATH}"' |
114 | else | 115 | else |
115 | export GST_PLUGIN_PATH="${GST_PLUGIN_PATH}:${RUN_PATH}/lib/gstreamer-plugins/" | ||
116 | export SL_ENV='LD_LIBRARY_PATH="`pwd`"/lib:"`pwd`"/app_settings/mozilla-runtime-linux-i686:"${LD_LIBRARY_PATH}"' | 116 | export SL_ENV='LD_LIBRARY_PATH="`pwd`"/lib:"`pwd`"/app_settings/mozilla-runtime-linux-i686:"${LD_LIBRARY_PATH}"' |
117 | fi | 117 | fi |
118 | 118 | ||