Module: xenomai-2.5
Branch: master
Commit: 40538a3a8cf4f997d884ebf3e94db795f5df0055
URL:    
http://git.xenomai.org/?p=xenomai-2.5.git;a=commit;h=40538a3a8cf4f997d884ebf3e94db795f5df0055

Author: Philippe Gerum <r...@xenomai.org>
Date:   Sat Apr 10 12:25:34 2010 +0200

scripts: fix xeno wrapper to consider --with-testdir

---

 scripts/xeno.in |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/scripts/xeno.in b/scripts/xeno.in
index d830a03..fea227f 100644
--- a/scripts/xeno.in
+++ b/scripts/xeno.in
@@ -9,6 +9,9 @@
 prefix="@prefix@"
 exec_prefix="@exec_prefix@"
 BINDIR="@bindir@"
+TESTDIR="@XENO_TEST_DIR@"
 unset prefix exec_prefix
 
-exec $BINDIR/$@
+test -x $BINDIR/$1 && exec $BINDIR/$@
+test -x $TESTDIR/$1 && exec $TESTDIR/$@
+echo "$1: not found/executable"


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to