linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Teemu Tervo <teemu.tervo@gmx.net>
To: linux-kernel@vger.kernel.org
Cc: torvalds@osdl.org
Subject: [PATCH] 2.5.75 (repost) Fix head/tail -num
Date: Fri, 11 Jul 2003 19:37:38 +0300	[thread overview]
Message-ID: <20030711193738.5331f3c0.teemu.tervo@gmx.net> (raw)


The following changes the incorrect head/tail -NUM syntax to the posix
compliant 'head/tail -n NUM'.

- Teemu

diff -Naur linux-2.5.75.orig/arch/ppc64/boot/Makefile linux-2.5.75/arch/ppc64/boot/Makefile
--- linux-2.5.75.orig/arch/ppc64/boot/Makefile	Fri Jul 11 09:27:15 2003
+++ linux-2.5.75/arch/ppc64/boot/Makefile	Fri Jul 11 09:33:21 2003
@@ -118,7 +118,7 @@
 	ls -l vmlinux | \
 	awk '{printf "/* generated -- do not edit! */\n" \
 		"unsigned long vmlinux_filesize = %d;\n", $$5}' > $(obj)/imagesize.c
-	$(CROSS_COMPILE)nm -n vmlinux | tail -1 | \
+	$(CROSS_COMPILE)nm -n vmlinux | tail -n 1 | \
 	awk '{printf "unsigned long vmlinux_memsize = 0x%s;\n", substr($$1,8)}' \
 		>> $(obj)/imagesize.c
 
diff -Naur linux-2.5.75.orig/scripts/mkcompile_h linux-2.5.75/scripts/mkcompile_h
--- linux-2.5.75.orig/scripts/mkcompile_h	Fri Jul 11 09:29:09 2003
+++ linux-2.5.75/scripts/mkcompile_h	Fri Jul 11 09:33:21 2003
@@ -54,7 +54,7 @@
     echo \#define LINUX_COMPILE_DOMAIN
   fi
 
-  echo \#define LINUX_COMPILER \"`$CC -v 2>&1 | tail -1`\"
+  echo \#define LINUX_COMPILER \"`$CC -v 2>&1 | tail -n 1`\"
 ) > .tmpcompile
 
 # Only replace the real compile.h if the new one is different,
diff -Naur linux-2.5.75.orig/scripts/ver_linux linux-2.5.75/scripts/ver_linux
--- linux-2.5.75.orig/scripts/ver_linux	Fri Jul 11 09:29:09 2003
+++ linux-2.5.75/scripts/ver_linux	Fri Jul 11 09:33:21 2003
@@ -58,7 +58,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 -n 1 | awk \
 'NR==1{print "Dynamic linker (ldd)  ", $NF}'
 
 ls -l /usr/lib/lib{g,stdc}++.so  2>/dev/null | awk -F. \

                 reply	other threads:[~2003-07-11 16:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030711193738.5331f3c0.teemu.tervo@gmx.net \
    --to=teemu.tervo@gmx.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).