How do you get the ports directory for a port via a script?

Brandon Allbery allbery.b at gmail.com
Sun Dec 2 09:17:55 PST 2012


On Sun, Dec 2, 2012 at 12:14 PM, Jim Graham <spooky130u at gmail.com> wrote:

> with another port.  The one thing I'm missing is how (via a script)
> to get the directory (e.g., textproc for ispell) that the port is
> in.  Is there a way (that I missed while doing my RTFM), via the
> 'port' command or some other ports-related command, to get the
> directory name (from either root or some fixed path)?
>

port dir <portname> ?

host140:10142 Z# port dir ispell
/opt/local/var/macports/sources/
rsync.macports.org/release/ports/textproc/ispell

-- 
brandon s allbery kf8nh                               sine nomine associates
allbery.b at gmail.com                                  ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad        http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-users/attachments/20121202/202edd9c/attachment.html>


More information about the macports-users mailing list