From: Alexandre Duret-Lutz Date: Tue, 19 Feb 2002 20:18:00 +0000 (+0000) Subject: * tests/insthook.test: Use sed instead of "tail +X". X-Git-Tag: Release-1-6~14 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=22b20609b98ffa07a47028a7c29f88a69d32625a;p=automake.git * tests/insthook.test: Use sed instead of "tail +X". --- diff --git a/ChangeLog b/ChangeLog index 05f8b7c1..7688b8cf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2002-02-19 Alexandre Duret-Lutz + + * tests/insthook.test: Use sed instead of "tail +X". + 2002-02-18 Paul Eggert * lib/depcomp: Don't use "tail +3"; it's not portable to diff --git a/tests/insthook.test b/tests/insthook.test index c12376b8..e52675b1 100755 --- a/tests/insthook.test +++ b/tests/insthook.test @@ -14,5 +14,6 @@ $ACLOCAL || exit 1 $AUTOMAKE || exit 1 test "`grep install-exec-hook Makefile.in | wc -l`" -gt 1 || exit 1 -lnum=`grep -n '^install-exec-am:' Makefile.in | awk -F: '{print $1}'` -test x$lnum != x && tail +$lnum Makefile.in | sed 3q | grep install-exec-hook +# install-exec-hook must appear in the install-exec-am rule. +sed -n '/^install-exec-am:/,/^[^ ]/p' Makefile.in | \ + grep install-exec-hook