From 6b2289acecc5b00e0896756dddceb8e2acd4ed3d Mon Sep 17 00:00:00 2001 From: "Gary V. Vaughan" Date: Sun, 8 Apr 2001 10:03:52 +0000 Subject: [PATCH] From Peter Eisentraut * ltmain.in (clean,uninstall): test -e is not portable. Well, neither is -L, but I'm hoping that redirecting error messages to /dev/null and relying on non-zero exit status will work okay on the few hosts that don't support -L. --- ChangeLog | 8 ++++++++ ltmain.in | 7 ++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a2827b25f..600c1a6ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2001-04-08 Gary V. Vaughan + + From Peter Eisentraut + * ltmain.in (clean,uninstall): test -e is not portable. Well, + neither is -L, but I'm hoping that redirecting error messages + to /dev/null and relying on non-zero exit status will work okay + on the few hosts that don't support -L. + 2001-04-08 Nick Hudson * ltmain.in: Improve check for valid -version-info parameter. diff --git a/ltmain.in b/ltmain.in index c52ef6619..e33fe4fe0 100644 --- a/ltmain.in +++ b/ltmain.in @@ -5104,7 +5104,12 @@ relink_command=\"$relink_command\"" fi # Don't error if the file doesn't exist and rm -f was used. - if test ! -e "$file" && test "$rmforce" = yes; then + if test -L "$file" >/dev/null 2>&1 || test -f "$file"; then + : + elif test -d "$file"; then + exit_status=1 + continue + elif test "$rmforce" = yes; then continue fi -- 2.47.3