updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / helium / helium-wrapper
blobc635c828d39eceac564eb2d7e46f319d501f4ec1
1 #! /bin/sh
3 BINNAME="$(basename $0)"
5 if [ -n "${HELIUM_TEMP}" ]; then
6 TEMP="${HELIUM_TEMP}";
7 else
8 TEMP="/tmp/helium-${USER}"
9 if ! [ -d "${TEMP}" ]; then
10 mkdir ${TEMP};
11 fi;
14 HELIUM_LIBS="/usr/lib/helium/lib";
16 if [ -z "${LVMPATH}" ]; then
17 LVMPATH=".:${HELIUM_LIBS}";
18 else
19 LVMPATH="${LVMPATH}:${HELIUM_LIBS}";
21 export LVMPATH
22 export TEMP
24 if [ "${BINNAME}" = "hint" ]; then
26 JAVA="$(which java)"
27 PROGCALL="${JAVA} -jar -DPATH=${PATH} -DLVMPATH=${LVMPATH} /usr/lib/helium/bin/Hint.jar"
29 else
31 PROGCALL="/usr/lib/helium/bin/${BINNAME}"
35 ${PROGCALL} $*