.
authorJim Meyering <jim@meyering.net>
Fri, 7 Jun 2002 14:44:02 +0000 (14:44 +0000)
committerJim Meyering <jim@meyering.net>
Fri, 7 Jun 2002 14:44:02 +0000 (14:44 +0000)
doc/Makefile.in

index 4415650..7061cf5 100644 (file)
@@ -390,7 +390,9 @@ $(INFO_DEPS): $(EXTRA_DIST)
 # List words/regexps here that should not appear in the texinfo documentation.
 check-texinfo:
        grep timezone $(srcdir)/*.texi && exit 1 || :
-       grep -w POSIX $(srcdir)/*.texi 2> /dev/null && exit 1 || :
+       @PERL@ -ne \
+         '/\bPOSIX\b/ && !/\@acronym{POSIX}/ || /{posix}/ and print,exit 1' \
+         $(srcdir)/*.texi 2> /dev/null && : || exit 1
 
 check: check-texinfo
 # Tell versions [3.59,3.63) of GNU make to not export all variables.