summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/helium/files/helium-wrapper')
-rw-r--r--dev-lang/helium/files/helium-wrapper16
1 files changed, 12 insertions, 4 deletions
diff --git a/dev-lang/helium/files/helium-wrapper b/dev-lang/helium/files/helium-wrapper
index e94e05e90d14..7bcd820e0b59 100644
--- a/dev-lang/helium/files/helium-wrapper
+++ b/dev-lang/helium/files/helium-wrapper
@@ -1,6 +1,7 @@
#! /bin/sh
-BINNAME="$(basename $0)"
+BINNAME_LONG="$(basename $0)"
+BINNAME="${BINNAME_LONG%-tc}"
if [ -n "${HELIUM_TEMP}" ]; then
TEMP="${HELIUM_TEMP}";
@@ -10,15 +11,22 @@ else
mkdir ${TEMP};
fi;
fi
+
+if [ "${BINNAME_LONG}" = "${BINNAME}" ]; then
+ HELIUM_LIBS="/usr/lib/helium/lib";
+else
+ HELIUM_LIBS="/usr/lib/helium/tclib";
+fi
+
if [ -z "${LVMPATH}" ]; then
- LVMPATH=".:/usr/lib/helium/lib";
+ LVMPATH=".:${HELIUM_LIBS}";
else
- LVMPATH="${LVMPATH}:/usr/lib/helium/lib";
+ LVMPATH="${LVMPATH}:${HELIUM_LIBS}";
fi
export LVMPATH
export TEMP
-if [ x${BINNAME} = xhint ]; then
+if [ "${BINNAME}" = "hint" ]; then
JAVA="$(java-config --java)"
PROGCALL="${JAVA} -jar -DPATH=${PATH} -DLVMPATH=${LVMPATH} /usr/share/helium/lib/Hint.jar"