libtool-patches
[Top][All Lists]
Advanced

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

[Patch #41] Do all rm's in one command with --mode=clean


From: Jeff Dubrule
Subject: [Patch #41] Do all rm's in one command with --mode=clean
Date: Fri, 19 Oct 2001 10:56:32 -0400
User-agent: Mutt/1.2.5i

This quick patch groups the rm's from --mode=clean into one rm
command.  This makes things clean much faster when rm'ing over NFS.

-jeff

Index: ltmain.in
===================================================================
RCS file: /cvsroot/libtool/libtool/ltmain.in,v
retrieving revision 1.259.2.9
diff -u -r1.259.2.9 ltmain.in
--- ltmain.in   2001/09/11 00:05:33     1.259.2.9
+++ ltmain.in   2001/10/19 14:14:02
@@ -4682,7 +4682,7 @@
        continue
       fi
 
-      rmfiles="$file"
+      rmfiles="$rmfiles $file"
 
       case $name in
       *.la)
@@ -4753,9 +4753,9 @@
        fi
        ;;
       esac
-      $show "$rm $rmfiles"
-      $run $rm $rmfiles || exit_status=1
     done
+    $show "$rm $rmfiles"
+    $run $rm $rmfiles || exit_status=1
 
     # Try to remove the ${objdir}s in the directories where we deleted files
     for dir in $rmdirs; do



reply via email to

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