libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: clean mode nit


From: Ralf Wildenhues
Subject: FYI: clean mode nit
Date: Thu, 24 Nov 2005 17:00:51 +0100
User-agent: Mutt/1.5.11

In --mode=clean, we should not remove files which are not present,
to facilitate omitting the -f in "rm -f".  Applied to both branches.

Cheers,
Ralf

        * libltdl/config/ltmain.m4sh (func_mode_uninstall): In clean
        mode, don't remove non-existent libfoo.lai.

Index: libltdl/config/ltmain.m4sh
===================================================================
RCS file: /cvsroot/libtool/libtool/libltdl/config/ltmain.m4sh,v
retrieving revision 1.18
diff -u -r1.18 ltmain.m4sh
--- libltdl/config/ltmain.m4sh  10 Nov 2005 18:32:44 -0000      1.18
+++ libltdl/config/ltmain.m4sh  24 Nov 2005 15:50:02 -0000
@@ -6636,7 +6636,7 @@
            *" $dlname "*) ;;
            *) rmfiles="$rmfiles $objdir/$dlname" ;;
            esac
-           rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
+           test -n "$libdir" && rmfiles="$rmfiles $objdir/$name 
$objdir/${name}i"
            ;;
          uninstall)
            if test -n "$library_names"; then



        * ltmain.in (clean mode): Don't remove non-existent libfoo.lai.

Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/ltmain.in,v
retrieving revision 1.334.2.99
diff -u -r1.334.2.99 ltmain.in
--- ltmain.in   24 Nov 2005 15:31:18 -0000      1.334.2.99
+++ ltmain.in   24 Nov 2005 15:50:29 -0000
@@ -6224,7 +6224,7 @@
            *" $dlname "*) ;;
            *) rmfiles="$rmfiles $objdir/$dlname" ;;
            esac
-           rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
+            test -n "$libdir" && rmfiles="$rmfiles $objdir/$name 
$objdir/${name}i"
            ;;
          uninstall)
            if test -n "$library_names"; then




reply via email to

[Prev in Thread] Current Thread [Next in Thread]