Module: xenomai-head
Branch: master
Commit: 69e825cf98fe7161eba8b2fda88890ac1abc17ee
URL:    
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=69e825cf98fe7161eba8b2fda88890ac1abc17ee

Author: Thomas De Schampheleire <patrickdepinguin+xeno...@gmail.com>
Date:   Fri Oct 15 00:25:48 2010 +0200

build: improve error handling in prepare-kernel.sh

---

 scripts/prepare-kernel.sh |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/scripts/prepare-kernel.sh b/scripts/prepare-kernel.sh
index 24b1f17..ab9d1c1 100755
--- a/scripts/prepare-kernel.sh
+++ b/scripts/prepare-kernel.sh
@@ -373,6 +373,9 @@ else
       default_adeos_patch="`( ls 
$xenomai_root/ksrc/arch/$xenomai_arch/patches/adeos-ipipe-$linux_version*-{$linux_arch,$xenomai_arch}-*|sort
 -r ) 2>/dev/null | head -n1`"
    fi
    if test x$default_adeos_patch = x; then
+      if test x$verbose = x1; then
+         echo "$me: no default Adeos patch found." >&2
+      fi
       default_adeos_patch=/dev/null
    fi
    while test x$adeos_patch = x; do
@@ -383,7 +386,7 @@ else
       if test x$adeos_patch = x; then
          adeos_patch=$default_adeos_patch
       fi
-      if test \! -r "$adeos_patch"; then
+      if test \! -r "$adeos_patch" -o x$adeos_patch = x/dev/null; then
          echo "$me: cannot read Adeos patch from $adeos_patch" >&2
          usedefault=
          adeos_patch=


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

Reply via email to