On Nov 8, 2008, at 20:03, Scott Haneda wrote:
On Nov 8, 2008, at 2:53 PM, Ryan Schmidt wrote:
On Nov 7, 2008, at 20:49, Scott Haneda wrote:
First, there is the issue of needing to do things to the files
while they are freshly unpacked. I am yet to find a good way to
recursively act on a set of files in TCL.
[snip]
There is a function fs-traverse in MacPorts designed for this.
Grep through the existing portfiles to see how this can be used.
Ok, cool, thanks. Uhm, how does one grep though port files? I
mean I should install a few, and then locally grep my FS?
You don't need to install any ports; all ports' portfiles are already
on your computer. Just go to the dports directory and grep through
them. Portfiles are always in a directory for the port, which is in a
directory for the group. So in the dports directory, "*/*/Portfile"
gets all portfiles.
For example, try:
cd $(port dir MacPorts)/../.. && grep fs-traverse */*/Portfile
_______________________________________________
macports-users mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users