Module: xenomai-2.4
Branch: master
Commit: e13a6eeccb5a1cce0c6e839cb8f6e33084a1ef6d

Author: Fabian Godehardt <>
Date:   Wed Nov 11 12:41:49 2009 +0100

scripts: use new 'head -n' syntax.

Executing configure on a chroot which uses a modern equivalent of
_POSIX_VERSION breaks on scripts/

  patching file mm/vmalloc.c
  head: `-1' option is obsolete; use `-n 1'
  Try `head --help' for more information.

This patch converts to the new 'head -n' syntax.

Signed-off-by: Fabian Godehardt <>


 scripts/ |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/ b/scripts/
index 2359bc2..3de59b0 100755
--- a/scripts/
+++ b/scripts/
@@ -408,10 +408,10 @@ if test -r 
$linux_tree/arch/$linux_arch/include/asm/ipipe.h; then
-   asm_ipipe_h=`ls $linux_tree/include/asm-{$linux_arch,$xenomai_arch}/ipipe.h 
2>/dev/null|head -1`
+   asm_ipipe_h=`ls $linux_tree/include/asm-{$linux_arch,$xenomai_arch}/ipipe.h 
2>/dev/null|head -n1`
-adeos_version=`grep '^#define.*IPIPE_ARCH_STRING.*"' $asm_ipipe_h 
2>/dev/null|head -1|sed -e 's,.*"\(.*\)"$,\1,'`
+adeos_version=`grep '^#define.*IPIPE_ARCH_STRING.*"' $asm_ipipe_h 
2>/dev/null|head -n1|sed -e 's,.*"\(.*\)"$,\1,'`
 if test \! "x$adeos_version" = x; then
    if test x$verbose = x1; then

Xenomai-git mailing list

Reply via email to