Jim Cromie wrote:
Tobias Marschall wrote:

Hallo,

I've been using rtai until now and decided to give xenomai (release 2.1) a try. I followed the instructions from README.INSTALL, and everything (kernel patching, compilation, etc.) went fine. Then I tried to run the latency test, which failed:

-----------
/usr/xenomai/testsuite/latency $ ./run
head: `-1' option is obsolete; use `-n 1' since this will be removed in the


this particular error is patched, attached.

While I was at it, I've fixed other spots in the same vein, in other scripts. This patch applies against v2.1.0.

--

Philippe.
Index: scripts/xeno-info
===================================================================
--- scripts/xeno-info	(revision 924)
+++ scripts/xeno-info	(working copy)
@@ -54,7 +54,7 @@
 -e 's/\.so$//' | awk -F'[.-]'   '{print "Linux C Library        " \
 $(NF-2)"."$(NF-1)"."$NF}'
 
-ldd -v > /dev/null 2>&1 && ldd -v || ldd --version |head -1 | awk \
+ldd -v > /dev/null 2>&1 && ldd -v || ldd --version |head -n1 | awk \
 'NR==1{print "Dynamic linker (ldd)  ", $NF}'
 
 ls -l /usr/lib/lib{g,stdc}++.so  2>/dev/null | awk -F. \
Index: scripts/prepare-kernel.sh
===================================================================
--- scripts/prepare-kernel.sh	(revision 924)
+++ scripts/prepare-kernel.sh	(working copy)
@@ -321,7 +321,7 @@
    exit 2
 else
    if test x$adeos_patch = x; then
-      default_adeos_patch=`( ls $xenomai_root/ksrc/arch/$xenomai_arch/patches/adeos-ipipe-$linux_VERSION.$linux_PATCHLEVEL*|sort -r ) 2>/dev/null | head -1`
+      default_adeos_patch=`( ls $xenomai_root/ksrc/arch/$xenomai_arch/patches/adeos-ipipe-$linux_VERSION.$linux_PATCHLEVEL*|sort -r ) 2>/dev/null | head -n1`
    fi
    if test x$default_adeos_patch = x; then
       default_adeos_patch=/dev/null
Index: scripts/xeno-load.in
===================================================================
--- scripts/xeno-load.in	(revision 924)
+++ scripts/xeno-load.in	(working copy)
@@ -56,7 +56,7 @@
 fi
 
 if test $target_name = default; then
-  target_name=`cut -s -d: -f1 $run_info_file | head -1`
+  target_name=`cut -s -d: -f1 $run_info_file | head -n1`
   if test "x$target_name" = x; then
      echo "xeno-load: no target defined in $run_info_file"
      exit 2
_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to