From 6ca25b1fe42c256de7838d01929e3b2b4cfb4591 Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Fri, 21 Sep 2012 09:56:06 +0200 Subject: [PATCH] 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 --- bin/autoreconf.in | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) 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"); } } -- 2.47.2