diff -uNr binutils-2.13.2.1.orig/Makefile.in binutils-2.13.2.1/Makefile.in --- binutils-2.13.2.1.orig/Makefile.in 2003-01-02 12:24:13.000000000 +1100 +++ binutils-2.13.2.1/Makefile.in 2003-05-10 14:11:30.083593560 +1000 @@ -1824,7 +1824,7 @@ elif grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \ sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \ elif test -f $(TOOL)/version.in; then \ - head -1 $(TOOL)/version.in; \ + head -n 1 $(TOOL)/version.in; \ elif grep VERSION $(TOOL)/Makefile.in > /dev/null 2>&1; then \ sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \ else \ diff -uNr binutils-2.13.2.1.orig/configure binutils-2.13.2.1/configure --- binutils-2.13.2.1.orig/configure 2002-07-14 11:14:52.000000000 +1000 +++ binutils-2.13.2.1/configure 2003-05-10 14:11:30.331555864 +1000 @@ -820,7 +820,7 @@ s/\\\n//g t loop /^CC[ ]*=/ s/CC[ ]*=[ ]*\(.*\)/\1/p' < Makefile > Makefile.cc - CC=`tail -1 Makefile.cc` + CC=`tail -n 1 Makefile.cc` rm -f Makefile.cc fi @@ -830,7 +830,7 @@ s/\\\n//g t loop /^CFLAGS[ ]*=/ s/CFLAGS[ ]*=[ ]*\(.*\)/\1/p' < Makefile > Makefile.cc - CFLAGS=`tail -1 Makefile.cc` + CFLAGS=`tail -n 1 Makefile.cc` rm -f Makefile.cc fi @@ -840,7 +840,7 @@ s/\\\n//g t loop /^CXX[ ]*=/ s/CXX[ ]*=[ ]*\(.*\)/\1/p' < Makefile > Makefile.cc - CXX=`tail -1 Makefile.cc` + CXX=`tail -n 1 Makefile.cc` rm -f Makefile.cc fi @@ -850,7 +850,7 @@ s/\\\n//g t loop /^CXXFLAGS[ ]*=/ s/CXXFLAGS[ ]*=[ ]*\(.*\)/\1/p' < Makefile > Makefile.cc - CXXFLAGS=`tail -1 Makefile.cc` + CXXFLAGS=`tail -n 1 Makefile.cc` rm -f Makefile.cc fi @@ -931,7 +931,7 @@ t loop /^'"${var}"'[ ]*=/ s/'"${var}"'[ ]*=[ ]*\(.*\)/\1/p' \ < Makefile > Makefile.v - t=`tail -1 Makefile.v` + t=`tail -n 1 Makefile.v` if [ -n "${t}" ]; then eval "${var}=\${t}" fi diff -uNr binutils-2.13.2.1.orig/gas/Makefile.am binutils-2.13.2.1/gas/Makefile.am --- binutils-2.13.2.1.orig/gas/Makefile.am 2002-07-14 11:14:18.000000000 +1000 +++ binutils-2.13.2.1/gas/Makefile.am 2003-05-10 14:11:30.862475152 +1000 @@ -739,13 +739,13 @@ against=stage2 # This rule is derived from corresponding code in the Makefile.in for gcc. -# The "tail +16c" is to bypass headers which may include timestamps or +# The "tail -c +16" is to bypass headers which may include timestamps or # temporary assembly file names. comparison: x=0 ; \ for file in *.o ; do \ - tail +16c ./$$file > tmp-foo1; \ - if tail +16c ${against}/$$file > tmp-foo2 2>/dev/null ; then \ + tail -c +16 ./$$file > tmp-foo1; \ + if tail -c +16 ${against}/$$file > tmp-foo2 2>/dev/null ; then \ if cmp tmp-foo1 tmp-foo2 ; then \ true ; \ else \ diff -uNr binutils-2.13.2.1.orig/gas/Makefile.in binutils-2.13.2.1/gas/Makefile.in --- binutils-2.13.2.1.orig/gas/Makefile.in 2002-07-14 11:14:18.000000000 +1000 +++ binutils-2.13.2.1/gas/Makefile.in 2003-05-10 14:11:31.494379088 +1000 @@ -2987,13 +2987,13 @@ if [ -f stage3/as-new$(EXEEXT) -a ! -f stage3/as$(EXEEXT) ] ; then (cd stage3 ; ln -s as-new as$(EXEEXT)) ; fi # This rule is derived from corresponding code in the Makefile.in for gcc. -# The "tail +16c" is to bypass headers which may include timestamps or +# The "tail -c +16" is to bypass headers which may include timestamps or # temporary assembly file names. comparison: x=0 ; \ for file in *.o ; do \ - tail +16c ./$$file > tmp-foo1; \ - if tail +16c ${against}/$$file > tmp-foo2 2>/dev/null ; then \ + tail -c +16 ./$$file > tmp-foo1; \ + if tail -c +16 ${against}/$$file > tmp-foo2 2>/dev/null ; then \ if cmp tmp-foo1 tmp-foo2 ; then \ true ; \ else \ diff -uNr binutils-2.13.2.1.orig/ld/testsuite/ld-bootstrap/bootstrap.exp binutils-2.13.2.1/ld/testsuite/ld-bootstrap/bootstrap.exp --- binutils-2.13.2.1.orig/ld/testsuite/ld-bootstrap/bootstrap.exp 2002-07-14 11:14:48.000000000 +1000 +++ binutils-2.13.2.1/ld/testsuite/ld-bootstrap/bootstrap.exp 2003-05-10 14:11:31.533373160 +1000 @@ -143,8 +143,8 @@ # Although this works, a way to set the date would be better. # Removing or zeroing the date stamp in the binary produced by # the linker is not possible as it is required by the target OS. - exec tail +140 tmpdir/ld2 >tmpdir/ld2tail - exec tail +140 tmpdir/ld3 >tmpdir/ld3tail + exec tail -n +140 tmpdir/ld2 >tmpdir/ld2tail + exec tail -n +140 tmpdir/ld3 >tmpdir/ld3tail catch "exec cmp tmpdir/ld2tail tmpdir/ld3tail" exec_output exec rm tmpdir/ld2tail tmpdir/ld3tail } else { diff -uNr binutils-2.13.2.1.orig/ltcf-c.sh binutils-2.13.2.1/ltcf-c.sh --- binutils-2.13.2.1.orig/ltcf-c.sh 2002-01-28 15:59:30.000000000 +1100 +++ binutils-2.13.2.1/ltcf-c.sh 2003-05-10 14:11:31.695348536 +1000 @@ -153,7 +153,7 @@ # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is. # If DATA tags from a recent dlltool are present, honour them! - archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then + archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname-def; else echo EXPORTS > $output_objdir/$soname-def; diff -uNr binutils-2.13.2.1.orig/ltcf-gcj.sh binutils-2.13.2.1/ltcf-gcj.sh --- binutils-2.13.2.1.orig/ltcf-gcj.sh 2001-11-14 17:24:41.000000000 +1100 +++ binutils-2.13.2.1/ltcf-gcj.sh 2003-05-10 14:11:31.833327560 +1000 @@ -156,7 +156,7 @@ # If the export-symbols file already is a .def file (1st line # is EXPORTS), use it as is. # If DATA tags from a recent dlltool are present, honour them! - archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then + archive_expsym_cmds='if test "x`head -n 1 $export_symbols`" = xEXPORTS; then cp $export_symbols $output_objdir/$soname-def; else echo EXPORTS > $output_objdir/$soname-def;