]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
libtool: unroll complex nested compound statements
authorGary V. Vaughan <gary@gnu.org>
Tue, 2 Oct 2012 13:44:54 +0000 (20:44 +0700)
committerGary V. Vaughan <gary@gnu.org>
Tue, 2 Oct 2012 14:08:00 +0000 (21:08 +0700)
* build-aux/ltmain.m4sh: Use an if statement instead of ugified
compound statements.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
build-aux/ltmain.m4sh

index 5e879e8b81dd4d08e8da8432c14997c00aedf28e..1692eb8c6574ede4b9a24a65ed6c14ba6539346d 100644 (file)
@@ -8680,8 +8680,9 @@ relink_command=\"$relink_command\""
     exit $EXIT_SUCCESS
 }
 
-{ test link = "$opt_mode" || test relink = "$opt_mode"; } &&
-    func_mode_link ${1+"$@"}
+if test link = "$opt_mode" || test relink = "$opt_mode"; then
+  func_mode_link ${1+"$@"}
+fi
 
 
 # func_mode_uninstall arg...
@@ -8853,8 +8854,9 @@ func_mode_uninstall ()
     exit $exit_status
 }
 
-{ test uninstall = "$opt_mode" || test clean = "$opt_mode"; } &&
-    func_mode_uninstall ${1+"$@"}
+if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then
+  func_mode_uninstall ${1+"$@"}
+fi
 
 test -z "$opt_mode" && {
   help=$generic_help