(check-texinfo): Use $(_W) and $(W_) instead of
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 12 Jun 2006 20:10:25 +0000 (20:10 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 12 Jun 2006 20:10:25 +0000 (20:10 +0000)
assuming grep -w (which is not portable).

doc/ChangeLog
doc/Makefile.am

index d8bb6ec..04aa1d7 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-12  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * Makefile.am (check-texinfo): Use $(_W) and $(W_) instead of
+       assuming grep -w (which is not portable).
+
 2006-05-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
        * Makefile.am: Use `AM_MAKEINFOFLAGS' rather than
index b5e9371..b6be901 100644 (file)
@@ -45,8 +45,8 @@ check-texinfo:
        $(PERL) -e 1 2> /dev/null && { $(PERL) -ne \
          '/\bPOSIX\b/ && !/\@acronym{POSIX}/ && !/^\* / || /{posix}/ and print,exit 1' \
          $(srcdir)/*.texi 2> /dev/null || fail=1; }; \
-       $(EGREP) -iw 'builtins?' $(srcdir)/*.texi && fail=1; \
-       $(EGREP) -iw 'path(name)?s?' $(srcdir)/*.texi \
+       $(EGREP) -i '$(_W)builtins?$(W_)' $(srcdir)/*.texi && fail=1; \
+       $(EGREP) -i '$(_W)path(name)?s?$(W_)' $(srcdir)/*.texi \
          | $(EGREP) -v '@vindex PATH$$|@env[{]PATH[}]' && fail=1; \
        exit $$fail