diff options
author | Gary V. Vaughan <gary@gnu.org> | 2012-10-02 18:08:29 +0700 |
---|---|---|
committer | Gary V. Vaughan <gary@gnu.org> | 2012-10-02 21:07:30 +0700 |
commit | 9a4cac834246b57f8a7c4883be4ad40345521b89 (patch) | |
tree | 3c4f4566ca30f395817617a6489abd93bc8e321d | |
parent | 0d3ae556976d27c6998f31f1a99df91bcd5907af (diff) | |
download | libtool-9a4cac834246b57f8a7c4883be4ad40345521b89.tar.gz |
libtool: use false or : for $rmforce, and simplify
* build-aux/ltmain.m4sh (func_mode_uninstall): Save a string
comparison by setting $rmforce 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.m4sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/build-aux/ltmain.m4sh b/build-aux/ltmain.m4sh index 47b6390e..e6ba14e5 100644 --- a/build-aux/ltmain.m4sh +++ b/build-aux/ltmain.m4sh @@ -8690,7 +8690,7 @@ func_mode_uninstall () RM=$nonopt files= - rmforce= + rmforce=false exit_status=0 # This variable tells wrapper scripts just to set variables rather @@ -8700,7 +8700,7 @@ func_mode_uninstall () for arg do case $arg in - -f) func_append RM " $arg"; rmforce=yes ;; + -f) func_append RM " $arg"; rmforce=: ;; -*) func_append RM " $arg" ;; *) func_append files " $arg" ;; esac @@ -8739,7 +8739,7 @@ func_mode_uninstall () elif test -d "$file"; then exit_status=1 continue - elif test yes = "$rmforce"; then + elif $rmforce; then continue fi @@ -8768,12 +8768,12 @@ func_mode_uninstall () uninstall) if test -n "$library_names"; then # Do each command in the postuninstall commands. - func_execute_cmds "$postuninstall_cmds" 'test yes = "$rmforce" || exit_status=1' + func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1' fi if test -n "$old_library"; then # Do each command in the old_postuninstall commands. - func_execute_cmds "$old_postuninstall_cmds" 'test yes = "$rmforce" || exit_status=1' + func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1' fi # FIXME: should reinstall the best remaining shared library. ;; |