New /bin/sh based script to manage ports

Doug Barton dougb at FreeBSD.org
Sat Jan 7 12:02:52 PST 2006


Jeremy Messenger wrote:

> # make -V PORTSDIR
> [...empty...]
> # pwd
> /root
> 
> It doesn't work here. I am not sure why I would get empty unless I have 
> Makefile or go in one of port directory.

If you set this variable in /etc/make.conf, you will get a value with this 
method (I tested it last night). What I did in my script was to do the make 
-V, and if it was empty to set the variable to the default.

hth,

Doug

-- 

     This .signature sanitized for your protection



More information about the freebsd-ports mailing list