Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/utils/platforms/k7/bin/narwhal-k7
diff options
context:
space:
mode:
Diffstat (limited to 'utils/platforms/k7/bin/narwhal-k7')
-rwxr-xr-xutils/platforms/k7/bin/narwhal-k732
1 files changed, 0 insertions, 32 deletions
diff --git a/utils/platforms/k7/bin/narwhal-k7 b/utils/platforms/k7/bin/narwhal-k7
deleted file mode 100755
index 495c9d8..0000000
--- a/utils/platforms/k7/bin/narwhal-k7
+++ /dev/null
@@ -1,32 +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=$(dirname $(dirname $SELF_PATH))
-BOOTSTRAP="$NARWHAL_PLATFORM_HOME/bootstrap.js"
-
-if [ ! "$NARWHAL_HOME" ]; then
- NARWHAL_HOME=$(dirname $(dirname $NARWHAL_PLATFORM_HOME))
-fi
-
-export NARWHAL_HOME
-
-# uses rlwrap (readline wrapper) if present
-K7="$(which rlwrap) k7"
-
-# drop into shell if there are no additional arguments
-if [ $# -lt 1 ]; then
- # FIXME: no way to explicitly drop into shell
- $K7 $BOOTSTRAP "$@"
-else
- MAIN=$(cd -P -- "$(dirname -- "$1")" && pwd -P) && MAIN=$MAIN/$(basename -- "$1" .js)
- $K7 $BOOTSTRAP $MAIN "$0" "$@"
-fi