* syntax-check.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 | 8 -------- 1 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/syntax-checks.mk b/syntax-checks.mk index 8df0f19..7ec980a 100644 --- a/syntax-checks.mk +++ b/syntax-checks.mk @@ -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 | \ -- 1.7.9