From: Stefano Lattarini Date: Fri, 21 Sep 2012 07:56:06 +0000 (+0200) Subject: autoreconf: minor simplifying refactoring X-Git-Tag: v2.69b~208 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ca25b1fe42c256de7838d01929e3b2b4cfb4591;p=thirdparty%2Fautoconf.git autoreconf: minor simplifying refactoring * bin/autoreconf.in (run_aclocal): After the previous commit, this has become just a useless wrapper around xsystem("$aclocal .."), so get rid of it, and inline its expansion in the two places where it was used ... (autoreconf_current_directory): ... in here. Signed-off-by: Stefano Lattarini --- diff --git a/bin/autoreconf.in b/bin/autoreconf.in index d395639d..0db8dc63 100644 --- a/bin/autoreconf.in +++ b/bin/autoreconf.in @@ -247,16 +247,6 @@ sub parse_args () } -# &run_aclocal ($ACLOCAL, $FLAGS) -# ------------------------------- -# Update aclocal.m4 as lazily as possible. -sub run_aclocal ($$) -{ - my ($aclocal, $flags) = @_; - - xsystem ("$aclocal $flags"); -} - # &autoreconf_current_directory # ----------------------------- sub autoreconf_current_directory () @@ -377,7 +367,7 @@ sub autoreconf_current_directory () # fall. sleep 1; - run_aclocal ($aclocal, $aclocal_flags); + xsystem ("$aclocal $aclocal_flags"); } # We might have to rerun aclocal if Libtool (or others) imports new @@ -511,7 +501,7 @@ sub autoreconf_current_directory () } else { - run_aclocal ($aclocal, $aclocal_flags); + xsystem ("$aclocal $aclocal_flags"); } }