Re: [22007] portutil.tcl mods / more portfile.7 changes needed?

2007-02-14 Thread Jordan K. Hubbard
On Feb 13, 2007, at 9:45 PM, Kevin Ballard wrote: That said, as long as I'm the only user of find (as I believe is the case) I am tempted to make some changes to the API. For example, the filter really should be an expr expression by default (as is the case with if/while/etc.), and the

Re: [22007] portutil.tcl mods / more portfile.7 changes needed?

2007-02-14 Thread Kevin Ballard
I will point out that if xinstall copies directories, that raises the question of how to apply mode and owner/groups to the installed directories. owner/group should be safe to recurse, but mode wouldn't be. On Feb 14, 2007, at 3:31 AM, Jordan K. Hubbard wrote: On Feb 13, 2007, at 11:19

Re: [22007] portutil.tcl mods / more portfile.7 changes needed?

2007-02-14 Thread Jordan K. Hubbard
You'd have to have a separate mode flag that would apply just to directories. A permission of 0755, for example, would be perfectly valid for an entire hierarchy of directories. - Jordan On Feb 14, 2007, at 1:39 AM, Kevin Ballard wrote: I will point out that if xinstall copies

Re: [22007] portutil.tcl mods / more portfile.7 changes needed?

2007-02-13 Thread Mark Duling
macports-dev@lists.macosforge.org on Tuesday, February 13, 2007 at 7:09 PM -0800 wrote: Reimplement delete so it no longer uses system /bin/rm -rf ... This also fixes the case of filenames with spaces in them being incorrectly parsed - That was EXTREMELY dangerous Add new touch command - usage

Re: [22007] portutil.tcl mods / more portfile.7 changes needed?

2007-02-13 Thread Kevin Ballard
On Feb 14, 2007, at 12:01 AM, Mark Duling wrote: I might be able to find time to document this. Especially because as I think about it there are still a couple of glaring omissions from our docs. I've written many portfiles and I still don't know the answer. Is there a way to do

Re: [22007] portutil.tcl mods / more portfile.7 changes needed?

2007-02-13 Thread Mark Duling
Kevin Ballard [EMAIL PROTECTED] on Tuesday, February 13, 2007 at 9:17 PM -0800 wrote: Docs on this can be found with `man n glob`. You may simply want to put in a reference to glob(n) there. Ah I see. Yes. I still think some usage examples in TCL extensions would be beneficial. 2) Is it

Re: [22007] portutil.tcl mods / more portfile.7 changes needed?

2007-02-13 Thread Kevin Ballard
Like I said, file copy (or just copy, after my commit) will in fact copy directories. In general, if you want to be recursive, we actually have a find command in pextlib, though the only place I know of it being used is in my fusefs port. That can be used such as find basedir

Re: [22007] portutil.tcl mods / more portfile.7 changes needed?

2007-02-13 Thread Mark Duling
Kevin Ballard [EMAIL PROTECTED] on Tuesday, February 13, 2007 at 9:45 PM -0800 wrote: Like I said, file copy (or just copy, after my commit) will in fact copy directories. I'm sorry to be so dull. You seem to be saying this: copy ${sourcedir} ${destdir} is equivalent to this: system cp -R

Re: [22007] portutil.tcl mods / more portfile.7 changes needed?

2007-02-13 Thread Kevin Ballard
On Feb 14, 2007, at 2:00 AM, Mark Duling wrote: Like I said, file copy (or just copy, after my commit) will in fact copy directories. I'm sorry to be so dull. You seem to be saying this: copy ${sourcedir} ${destdir} is equivalent to this: system cp -R ${sourcedir} ${destdir} But