Module: xenomai-rpm
Branch: for-upstream
Commit: bba8a3f53c81f1fd0270e7bed696cdf61901f6f6
URL:    
http://git.xenomai.org/?p=xenomai-rpm.git;a=commit;h=bba8a3f53c81f1fd0270e7bed696cdf61901f6f6

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..28eb02c 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/$@ && exec $BINDIR/$@
+test -x $TESTDIR/$@ && 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