[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FYI: rewrite "tail +X" call from tests/insthook.test
From: |
Alexandre Duret-Lutz |
Subject: |
FYI: rewrite "tail +X" call from tests/insthook.test |
Date: |
19 Feb 2002 21:06:10 +0100 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 |
I'm checking this in.
Index: ChangeLog
===================================================================
RCS file: /cvs/automake/automake/ChangeLog,v
retrieving revision 1.1764
diff -u -r1.1764 ChangeLog
--- ChangeLog 2002/02/19 19:11:10 1.1764
+++ ChangeLog 2002/02/19 20:11:03
@@ -1,3 +1,7 @@
+2002-02-19 Alexandre Duret-Lutz <address@hidden>
+
+ * tests/insthook.test: Use sed instead of "tail +X".
+
2002-02-18 Paul Eggert <address@hidden>
* lib/depcomp: Don't use "tail +3"; it's not portable to
Index: tests/insthook.test
===================================================================
RCS file: /cvs/automake/automake/tests/insthook.test,v
retrieving revision 1.5
diff -u -r1.5 insthook.test
--- insthook.test 2002/02/18 15:52:46 1.5
+++ insthook.test 2002/02/19 20:11:03
@@ -14,5 +14,6 @@
$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
--
Alexandre Duret-Lutz
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- FYI: rewrite "tail +X" call from tests/insthook.test,
Alexandre Duret-Lutz <=