Needed for my ten-times patch.

Question: why do we grep . after grep -v?  It is not guaranteed that
grep -v will exit positive when it output something?

Index: ChangeLog
from  Akim Demaille  <[EMAIL PROTECTED]>
        * Makefile.am (maintainer-check): `undef $/' is OK.
        
        
Index: Makefile.am
--- Makefile.am Mon, 26 Feb 2001 23:44:40 +0100 akim (am/f/46_Makefile.a 1.10 644)
+++ Makefile.am Tue, 27 Feb 2001 22:20:55 +0100 akim (am/f/46_Makefile.a 1.10 644)
@@ -88,8 +88,10 @@
          echo "Found incorrect use of mkinstalldirs in the lines above" 1>&2; \
          exit 1; \
        else :; fi
-## We never want to use "undef", only "delete".
-       @if grep -n -w undef $(srcdir)/automake.in; then \
+## We never want to use "undef", only "delete", but for $/.
+       @if grep -n -w undef $(srcdir)/automake.in | \
+             fgrep -v 'undef $/' | \
+             grep . ; then \
          echo "Found undef in automake.in; use delete instead" 1>&2; \
          exit 1; \
        fi

Reply via email to