* [ltt-dev] [PATCH 4/4] lttv: Look for executable in run script
@ 2009-08-10 20:38 Benjamin Poirier
0 siblings, 0 replies; only message in thread
From: Benjamin Poirier @ 2009-08-10 20:38 UTC (permalink / raw)
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 at polymtl.ca>
---
runlttv | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/runlttv b/runlttv
index fd774d3..31728d6 100755
--- 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
--
1.6.3.3
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-08-10 20:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-08-10 20:38 [ltt-dev] [PATCH 4/4] lttv: Look for executable in run script Benjamin Poirier
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox