diff -uNr linux-2.5.69.orig/arch/ppc64/boot/Makefile linux-2.5.69/arch/ppc64/boot/Makefile --- linux-2.5.69.orig/arch/ppc64/boot/Makefile 2003-04-26 02:48:57.000000000 +1000 +++ linux-2.5.69/arch/ppc64/boot/Makefile 2003-05-10 15:04:09.379307608 +1000 @@ -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 -uNr linux-2.5.69.orig/scripts/mkcompile_h linux-2.5.69/scripts/mkcompile_h --- linux-2.5.69.orig/scripts/mkcompile_h 2003-03-25 09:01:53.000000000 +1100 +++ linux-2.5.69/scripts/mkcompile_h 2003-05-10 15:04:09.462294992 +1000 @@ -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 -uNr linux-2.5.69.orig/scripts/ver_linux linux-2.5.69/scripts/ver_linux --- linux-2.5.69.orig/scripts/ver_linux 2003-03-25 09:00:51.000000000 +1100 +++ linux-2.5.69/scripts/ver_linux 2003-05-10 15:04:09.440298336 +1000 @@ -55,7 +55,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. \