]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
autoreconf: remove redundant xsystem calls
authorRoss Burton <ross.burton@arm.com>
Thu, 15 Oct 2020 00:33:19 +0000 (20:33 -0400)
committerZack Weinberg <zackw@panix.com>
Thu, 15 Oct 2020 00:33:19 +0000 (20:33 -0400)
xsystem_hint() executes the command, so there's no need to call xsystem()
afterwards.

* bin/autoreconf.in: No need to call xsystem($cmd) immediately after
  calling xsystem_hint("message", $cmd).

bin/autoreconf.in

index 54b9b675650d2f46d74ee561fae2940dd457b352..ba08c6acc686aa9d5c8391710c8663cba6cf8d99 100644 (file)
@@ -311,7 +311,8 @@ sub autoreconf_current_directory ($)
     }
   else
     {
-      xsystem_hint ("autopoint is needed because this package uses Gettext", "$autopoint");
+      xsystem_hint ("autopoint is needed because this package uses Gettext",
+                    $autopoint);
     }
 
 
@@ -517,8 +518,8 @@ sub autoreconf_current_directory ($)
     }
   elsif ($install)
     {
-      xsystem_hint ("intltoolize is needed because this package uses Intltool", $intltoolize);
-      xsystem ($intltoolize)
+      xsystem_hint ("intltoolize is needed because this package uses Intltool",
+                    $intltoolize);
     }
   else
     {
@@ -538,7 +539,6 @@ sub autoreconf_current_directory ($)
     {
       xsystem_hint ("gtkdocize is needed because this package uses Gtkdoc",
                    $gtkdocize);
-      xsystem ($gtkdocize)
     }
   else
     {