libtool
[Top][All Lists]
Advanced

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

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


From: Jeff Dubrule
Subject: Re: [Patch #41] Do all rm's in one command with --mode=clean
Date: Tue, 23 Oct 2001 16:54:14 -0400
User-agent: Mutt/1.2.5i

Hmm.  I was having trouble trying to feed 'xargs' it's data without
actually putting it all on a command-line at some point(silly, eh?).
In any event, perhaps something like this will work:

   for each file
      ...
      $rmfiles=$rmfiles $some_files_to_delete
      ...
      if 100 < -l "$rmfiles"  then
        $show "$rm $rmfiles"
        $run $rm || exit_status=1
        $rmfiles=
      fi
    done
    if test -n "$rmfiles"; then
      $show "$rm $rmfiles"
      $run $rm || exit_status=1
      $rmfiles=
    fi

Is there a less random number than 100, that would be a reasonable
minimum?

-jeff



reply via email to

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