lttv: Look for executable in run script
authorBenjamin Poirier <benjamin.poirier@polymtl.ca>
Mon, 10 Aug 2009 20:38:31 +0000 (16:38 -0400)
committerPierre-Marc Fournier <pierre-marc.fournier@polymtl.ca>
Wed, 12 Aug 2009 02:17:41 +0000 (22:17 -0400)
When static link mode is enabled, the main lttv executable does not end up in
the same directory. Look for it in the two places where it might be.

Signed-off-by: Benjamin Poirier <benjamin.poirier@polymtl.ca>
runlttv

diff --git a/runlttv b/runlttv
index fd774d3042c19c624f665f6798eb8f0828914c0d..31728d65b0d3c786cd93b5b8d08ad5b0c2a6fbc1 100755 (executable)
--- a/runlttv
+++ b/runlttv
@@ -30,9 +30,11 @@ ARGS=\
 "-L lttv/modules/gui/interrupts/.libs -m interrupts "\
 "-L lttv/modules/gui/histogram/.libs -m guihistogram"
 
-LTTV_EXEC="lttv/lttv/.libs/lttv.real"
-
-if [ ! -e "$LTTV_EXEC" ]; then
+if [ -e "lttv/lttv/.libs/lttv.real" ]; then
+       LTTV_EXEC="lttv/lttv/.libs/lttv.real"
+elif [ -e "lttv/lttv/lttv.real" ]; then
+       LTTV_EXEC="lttv/lttv/lttv.real"
+else
        echo "error: LTTV should be compiled before running this script." >/dev/stderr
        exit 1
 fi
This page took 0.024412 seconds and 4 git commands to generate.