New /bin/sh based script to manage ports

Stijn Hoop stijn at win.tue.nl
Sat Jan 7 02:20:22 PST 2006


On Sat, Jan 07, 2006 at 06:50:41PM +0900, KOMATSU Shinichiro wrote:
> Stijn Hoop wrote:
> > On Sat, Jan 07, 2006 at 12:45:01AM -0800, Doug Barton wrote:
> > 
> >>However, the other two present a chicken and 
> >>egg problem if I choose to use 'make -V' to get the values of these 
> >>variables (where do I cd to?).
> > 
> > 
> > Why do you need to cd?
> > 
> > [stijn at tangaloor] </tmp> ls Makefile
> > ls: Makefile: No such file or directory
> > [stijn at tangaloor] </tmp> make -V PORTSDIR
> > /net/freebsd/ports
> 
> PORTSDIR is set in bsd.port.mk, which is not included
> if you do not explicitly include it by ".include <bsd.port.mk>".
> Don't you set it in /etc/make.conf or environment variable?
> 
> Recently I thought the same problem, and
> the best solution I came up with till now is
> running the following command:
> 
>     % echo '.include <bsd.port.mk>' | make -f - -V PORTSDIR
> 
> I will add this into portupgrade in later release
> (after solving the MOVED problem...).

Ah, of course. That is probably the best solution, indeed.

--Stijn

-- 
Light travels faster than sound. That's why some people appear bright
until you hear them speak.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20060107/bf301413/attachment.bin


More information about the freebsd-ports mailing list