From: Tom Tromey Date: Tue, 19 Feb 2002 19:11:50 +0000 (+0000) Subject: 2002-02-18 Paul Eggert X-Git-Tag: Release-1-6~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bcf090beaaa63046a7bc19c3b97f364269014c28;p=thirdparty%2Fautomake.git 2002-02-18 Paul Eggert * lib/depcomp: Don't use "tail +3"; it's not portable to POSIX 1003.1-2001 hosts. --- diff --git a/ChangeLog b/ChangeLog index a086558a0..05f8b7c19 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-02-18 Paul Eggert + + * lib/depcomp: Don't use "tail +3"; it's not portable to + POSIX 1003.1-2001 hosts. + 2002-02-18 Jim Meyering * tests/cond12.test: Use sed 1q, not `head -n 1'. diff --git a/lib/depcomp b/lib/depcomp index d1d45a3fe..368e3be93 100755 --- a/lib/depcomp +++ b/lib/depcomp @@ -324,7 +324,7 @@ makedepend) if test "$stat" != 0; then exit $stat; fi rm -f "$depfile" cat < "$tmpdepfile" > "$depfile" - tail +3 "$tmpdepfile" | tr ' ' ' + sed '1,2d' "$tmpdepfile" | tr ' ' ' ' | \ ## Some versions of the HPUX 10.20 sed can't process this invocation ## correctly. Breaking it into two sed invocations is a workaround.