+2002-02-19 Alexandre Duret-Lutz <duret_g@epita.fr>
+
+ * tests/insthook.test: Use sed instead of "tail +X".
+
2002-02-18 Paul Eggert <eggert@twinsun.com>
* lib/depcomp: Don't use "tail +3"; it's not portable to
$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