maintcheck: remove an obsolete check
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 23 Feb 2012 21:06:14 +0000 (22:06 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 23 Feb 2012 21:10:29 +0000 (22:10 +0100)
* syntax-checks.mk (sc_perl_local_no_parens): Remove, we don't even
allow the use of local but for the '$_' and '$~' special variables.
(syntax_check_rules): Adjust.

syntax-checks.mk

index 8df0f19..7ec980a 100644 (file)
@@ -50,7 +50,6 @@ sc_perl_no_split_regex_space \
 sc_cd_in_backquotes \
 sc_cd_relative_dir \
 sc_perl_at_uscore_in_scalar_context \
-sc_perl_local_no_parens \
 sc_perl_local \
 sc_AMDEP_TRUE_in_automake_in \
 sc_tests_make_without_am_makeflags \
@@ -265,13 +264,6 @@ sc_perl_at_uscore_in_scalar_context:
          exit 1; \
        fi
 
-## Forbid using parens with 'local' to ease counting.
-sc_perl_local_no_parens:
-       @if grep '^[ \t]*local *(' $(srcdir)/automake.in; then \
-         echo "Don't use 'local' with parens: use several 'local' above." >&2; \
-         exit 1; \
-       fi
-
 ## Allow only few variables to be localized in Automake.
 sc_perl_local:
        @if egrep -v '^[ \t]*local \$$[_~]( *=|;)' $(srcdir)/automake.in | \