From: Stefano Lattarini Date: Thu, 23 Feb 2012 21:06:14 +0000 (+0100) Subject: maintcheck: remove an obsolete check X-Git-Tag: v1.11b~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4f2b64c1f74f1bba7762f544cf3b6a703ac0211;p=thirdparty%2Fautomake.git maintcheck: remove an obsolete check * 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. --- diff --git a/syntax-checks.mk b/syntax-checks.mk index 8df0f198a..7ec980aae 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 | \