* tests/insthook.test: Use sed instead of "tail +X".
authorAlexandre Duret-Lutz <adl@gnu.org>
Tue, 19 Feb 2002 20:18:02 +0000 (20:18 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Tue, 19 Feb 2002 20:18:02 +0000 (20:18 +0000)
ChangeLog
tests/insthook.test

index 05f8b7c..7688b8c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+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
index c12376b..e52675b 100755 (executable)
@@ -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