]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
From Peter Eisentraut <peter_e@gmx.net>
authorGary V. Vaughan <gary@gnu.org>
Sun, 8 Apr 2001 09:51:22 +0000 (09:51 +0000)
committerGary V. Vaughan <gary@gnu.org>
Sun, 8 Apr 2001 09:51:22 +0000 (09:51 +0000)
* 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
ltmain.in

index 504bc36796d7affab36c2e14ac40fac60f1bb7bd..8308d6e08ae5262a4243279a1d72c99ec8df703d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2001-04-08  Gary V. Vaughan  <gvv@techie.com>
+
+       From Peter Eisentraut  <peter_e@gmx.net>
+       * 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  <skrll@netbsd.org>
 
        * ltmain.in: Improve check for valid -version-info parameter.
index a6e197d678b2ed1fe248641f2638f4f6d95009af..61feba21c6e958feb4157732e7588644f4d97866 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -4654,7 +4654,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