From 7510fd8bedafad915a10bb7a50e9bd45c9a34f8e Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Tue, 2 Oct 2012 18:08:29 +0700 Subject: [PATCH] libtool: use false or : for $isdir, and simplify * build-aux/ltmain.m4sh (func_mode_install): Save a string comparison by setting $isdir to false or : and using it directly as the first argument to if. Signed-off-by: Gary V. Vaughan --- build-aux/ltmain.m4sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh index e2d30b0fb..22bb232bc 100644 --- a/build-aux/ltmain.m4sh +++ b/build-aux/ltmain.m4sh @@ -2027,7 +2027,7 @@ func_mode_install () opts= prev= install_type= - isdir=no + isdir=false stripme= no_mode=: for arg @@ -2040,7 +2040,7 @@ func_mode_install () fi case $arg in - -d) isdir=yes ;; + -d) isdir=: ;; -f) if $install_cp; then :; else prev=$arg @@ -2105,8 +2105,8 @@ func_mode_install () dest=$func_stripname_result # Check to see that the destination is a directory. - test -d "$dest" && isdir=yes - if test yes = "$isdir"; then + test -d "$dest" && isdir=: + if $isdir; then destdir=$dest destname= else -- 2.47.2