+ #Get a textdump command
+ # if RUNLTTV is defined try to use it
+ # if LTTV variable is defined try to use it
+ # try to find lttv in the path
+ # try to find runlttv in std paths (devel/lttv/runlttv and ust/../lttv/runlttv
+
+ if [ ! -d "$RUNLTTV" -a -x "$RUNLTTV" ]; then
+ LTTV_TEXTDUMP_CMD="$RUNLTTV -m text "
+ LTTV_TRACE_PREFIX=""
+
+ elif [ -d "$RUNLTTV" -a -x "$RUNLTTV/runlttv" ]; then
+ LTTV_TEXTDUMP_CMD="$RUNLTTV/runlttv -m text "
+ LTTV_TRACE_PREFIX=""
+
+ elif [ ! -d "$LTTV" -a -x "$LTTV" ]; then
+ LTTV_TEXTDUMP_CMD="$LTTV -m textDump "
+ LTTV_TRACE_PREFIX="-t"
+
+ elif [ -d "$LTTV" -a -x "$LTTV/lttv" ]; then
+ LTTV_TEXTDUMP_CMD="$LTTV/lttv -m textDump "
+ LTTV_TRACE_PREFIX="-t"
+
+ elif [ -x "$(which lttv.real)" ]; then
+ LTTV_TEXTDUMP_CMD="$(which lttv.real) -m textDump ";
+ LTTV_TRACE_PREFIX="-t"
+
+ elif [ -x "~/devel/lttv/runlttv" ]; then
+ LTTV_TEXTDUMP_CMD="~/devel/lttv/runlttv -m text ";
+ LTTV_TRACE_PREFIX=""
+
+ elif [ -x "$(dirname `readlink -f $0`)/../../lttv/runlttv" ]; then
+ LTTV_TEXTDUMP_CMD="$(dirname `readlink -f $0`)/../../lttv/runlttv -m text "
+ LTTV_TRACE_PREFIX=""
+
+ else
+ echo "$0: No lttv found. Edit \$RUNLTTV to point to your lttv source directory or \$LTTV to you lttv executable." >/dev/stderr