]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
[ng] maintcheck: fix several spurious failures
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 2 Jun 2012 08:59:56 +0000 (10:59 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 2 Jun 2012 09:00:13 +0000 (11:00 +0200)
* syntax-checks.mk ($(sc_renamed_variables_rules)): Only match the
"blacklisted" old variable names when they constitute a single word.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
syntax-checks.mk

index 5a5b6fe0b8a8edcc39ba748f4451cf0d77d9cf75..ada7fabb86346e72f46cf7a7d59621081fad1940 100644 (file)
@@ -338,7 +338,7 @@ $(sc_renamed_variables_rules): sc_no_% :
          $(srcdir)/automake.in \
          $(srcdir)/doc/*.texi \
        "; \
-       if grep -F '$*' $$files; then \
+       if grep -E '\b$*\b' $$files; then \
          echo "'\$$($*)' is obsolete and no more used." >&2; \
          echo "You should use '$(modern.$*)' instead." >&2; \
          exit 1; \