Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/utils/platforms/rhino/bin/narwhal-rhino
diff options
context:
space:
mode:
Diffstat (limited to 'utils/platforms/rhino/bin/narwhal-rhino')
-rwxr-xr-xutils/platforms/rhino/bin/narwhal-rhino42
1 files changed, 0 insertions, 42 deletions
diff --git a/utils/platforms/rhino/bin/narwhal-rhino b/utils/platforms/rhino/bin/narwhal-rhino
deleted file mode 100755
index 488362a..0000000
--- a/utils/platforms/rhino/bin/narwhal-rhino
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/bash
-
-# get the absolute path of the executable
-SELF_PATH=$(cd -P -- "$(dirname -- "$0")" && pwd -P) && SELF_PATH="$SELF_PATH/$(basename -- "$0")"
-
-# resolve symlinks
-while [ -h "$SELF_PATH" ]; do
- DIR=$(dirname -- "$SELF_PATH")
- SYM=$(readlink -- "$SELF_PATH")
- SELF_PATH=$(cd -- "$DIR" && cd -- $(dirname -- "$SYM") && pwd)/$(basename -- "$SYM")
-done
-
-# NARWHAL_PLATFORM_HOME is the 2nd ancestor directory of this shell script
-export NARWHAL_PLATFORM_HOME=$(dirname -- "$(dirname -- "$SELF_PATH")")
-
-BOOTSTRAP=$NARWHAL_PLATFORM_HOME/bootstrap.js
-
-if [ -z "$NARWHAL_HOME" ]; then
- NARWHAL_HOME=$(dirname -- "$(dirname -- "$NARWHAL_PLATFORM_HOME")")
-fi
-
-CLASSPATH=$NARWHAL_PLATFORM_HOME/jars/js.jar:$NARWHAL_PLATFORM_HOME/jars/jline.jar
-if [ -z "$NARWHAL_CLASSPATH" ]; then
- CLASSPATH=$NARWHAL_CLASSPATH:$CLASSPATH
-fi
-
-if [ "$(which cygpath 2>/dev/null)" ]; then
- CLASSPATH=$(cygpath -wp -- "$CLASSPATH")
- BOOTSTRAP=$(cygpath -wa -- "$BOOTSTRAP")
- export NARWHAL_HOME=$(cygpath -wa -- "$NARWHAL_HOME")
- export NARWHAL_PLATFORM_HOME=$(cygpath -wa -- "$NARWHAL_PLATFORM_HOME")
-fi
-
-JAVA_MAIN=org.mozilla.javascript.tools.shell.Main
-
-# drop into shell if there are no additional arguments
-if [ $# -lt 1 ]; then
- java -cp "$CLASSPATH" "$JAVA_MAIN" -f "$BOOTSTRAP" -f -
-else
- java -cp "$CLASSPATH" "$JAVA_MAIN" "$BOOTSTRAP" "$0" "$@"
-fi
-