]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
maint: don't use obsolescent "egrep"
authorJim Meyering <meyering@fb.com>
Mon, 4 Oct 2021 03:06:35 +0000 (20:06 -0700)
committerJim Meyering <meyering@fb.com>
Mon, 4 Oct 2021 03:06:47 +0000 (20:06 -0700)
* maintainer/syntax-checks.mk (sc_perl_local): Use grep -E
in place of "egrep".

maintainer/syntax-checks.mk

index 56f853888b21820039608e9d6989b59b7a986047..6b7ec020f89fd46ddc53117d7e66019882fdaa87 100644 (file)
@@ -230,7 +230,7 @@ sc_perl_at_uscore_in_scalar_context:
 
 ## Allow only few variables to be localized in automake and aclocal.
 sc_perl_local:
-       @if egrep -v '^[ \t]*local \$$[_~]( *=|;)' \
+       @if grep -Ev '^[ \t]*local \$$[_~]( *=|;)' \
              $(automake_in) $(aclocal_in) | \
            grep '^[ \t]*local [^*]'; then \
          echo "Please avoid 'local'." 1>&2; \