PATCH: head -n 2 for ppc64

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Fri Jul 18 2003 - 09:05:35 EST


diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.6.0-test1/arch/ppc64/boot/Makefile linux-2.6.0-test1-ac2/arch/ppc64/boot/Makefile
--- linux-2.6.0-test1/arch/ppc64/boot/Makefile 2003-07-10 21:13:37.000000000 +0100
+++ linux-2.6.0-test1-ac2/arch/ppc64/boot/Makefile 2003-07-15 17:24:40.000000000 +0100
@@ -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
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Jul 23 2003 - 22:00:33 EST