PATCH: POSIX doesnt guarantee head -2, only head -n 2

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


(and some build environments are set up to be poxixly correct)

(Teemu Tervo)
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.6.0-test1/arch/mips/ramdisk/Makefile linux-2.6.0-test1-ac2/arch/mips/ramdisk/Makefile
--- linux-2.6.0-test1/arch/mips/ramdisk/Makefile 2003-07-10 21:12:14.000000000 +0100
+++ linux-2.6.0-test1-ac2/arch/mips/ramdisk/Makefile 2003-07-15 17:24:40.000000000 +0100
@@ -2,7 +2,7 @@
 # Makefile for a ramdisk image
 #
 
-O_FORMAT = $(shell $(OBJDUMP) -i | head -2 | grep elf32)
+O_FORMAT = $(shell $(OBJDUMP) -i | head -n 2 | grep elf32)
 img = $(CONFIG_EMBEDDED_RAMDISK_IMAGE)
 ramdisk.o: $(subst ",,$(img)) ld.script
         echo "O_FORMAT: " $(O_FORMAT)
-
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