]> 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 10:03:52 +0000 (10:03 +0000)
committerGary V. Vaughan <gary@gnu.org>
Sun, 8 Apr 2001 10:03:52 +0000 (10:03 +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 a2827b25f44e0c378ae242e3b012b61b0a8cd224..600c1a6ba3acae7ac2f9e6d402c03d7c1dbb0f64 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 c52ef6619497a37e06dbb3ac35e016338a77837a..e33fe4fe004997a948a870d62029248483054994 100644 (file)
--- 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