- if [ ! -x "$RUNLTTV" ]; then
- echo "$0: $RUNLTTV not executable. Edit \$RUNLTTV to point to your lttv source directory." >/dev/stderr
+ 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." 1>&2