Index: tools/testing/bin/jsshell |
diff --git a/tools/testing/bin/jsshell b/tools/testing/bin/jsshell |
index 359950d73cba61a97c4236d1d13b0bd54dc088e0..6dec09f655722d04fe6b36afb023d0576078b6ef 100755 |
--- a/tools/testing/bin/jsshell |
+++ b/tools/testing/bin/jsshell |
@@ -3,14 +3,15 @@ |
# for details. All rights reserved. Use of this source code is governed by a |
# BSD-style license that can be found in the LICENSE file. |
+JSDIR=${0%/*}/../../../third_party/firefox_jsshell |
case $OSTYPE in |
*[Dd]arwin*) |
- exec ${0%/*}/../../../third_party/firefox_jsshell/macos/js "$@" |
+ exec $JSDIR/mac/jsshell/js "$@" |
;; |
*[Ll]inux*) |
- LD_LIBRARY_PATH=${0%/*}/../../../third_party/firefox_jsshell/linux/ \ |
- exec ${0%/*}/../../../third_party/firefox_jsshell/linux/js "$@" |
+ LD_LIBRARY_PATH=$JSDIR/linux/jsshell/ \ |
+ exec $JSDIR/linux/jsshell/js "$@" |
;; |
*) |
echo No jsshell binary for $(uname) >2 |