[22007] trunk/base/src/port1.0/portutil.tcl
Jordan K. Hubbard
jkh at brierdr.com
Thu Feb 15 20:59:58 PST 2007
Well, making a pextlib call that implements "delete" with multiple
arguments, where each argument is a filename (or directory), would be
trivial in the extreme. Do we want more than that?
- Jordan
On Feb 15, 2007, at 8:24 PM, Kevin Ballard wrote:
> Alternately, we could just go back to using rm -rf, but do it
> correctly this time (so spaces don't screw it up).
>
> This would be easier if the system call from Pextlib followed the
> exec usage and allowed you to pass each argument separately.
>
> On Feb 14, 2007, at 3:23 AM, Jordan K. Hubbard wrote:
>
>> While most of these helper functions seem pretty sane, I can't
>> help but think that the delete function really ought to be written
>> in C for speed and correctness (following the pseudo code example
>> at http://docs.info.apple.com/article.html?artnum=107884). The
>> Tcl function I see below is not going to be particularly fast on
>> either broad or deep hierarchies of files, and mass deletions of
>> stuff in cleanup procedures is fairly common place. I think the
>> other functions are low-overhead enough that Tcl is a fine
>> implementation language, but not delete.
>
> --
> Kevin Ballard
> http://kevin.sb.org
> eridius at macports.org
> http://www.tildesoft.com
>
>
> _______________________________________________
> macports-changes mailing list
> macports-changes at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/macports-changes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-dev/attachments/20070215/59c0d572/attachment.html
More information about the macports-dev
mailing list