summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary V. Vaughan <gary@gnu.org>2012-10-02 18:08:29 +0700
committerGary V. Vaughan <gary@gnu.org>2012-10-02 21:06:13 +0700
commit7510fd8bedafad915a10bb7a50e9bd45c9a34f8e (patch)
treeea41d964aa15ca12df1c0f0472d7774c9f14eb62
parent4440d6523bf9c668720f9ffa66fb89e91912a504 (diff)
downloadlibtool-7510fd8bedafad915a10bb7a50e9bd45c9a34f8e.tar.gz
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 <gary@gnu.org>
-rw-r--r--build-aux/ltmain.m4sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh
index e2d30b0f..22bb232b 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