New /bin/sh based script to manage ports
Vasil Dimov
vd at datamax.bg
Tue Jan 10 06:22:45 PST 2006
On Sat, Jan 07, 2006 at 12:02:49PM -0800, Doug Barton wrote:
> 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.
>
I would like to add that one should better use make -C / -V PORTSDIR
to avoid program's behavior depending on the current directory - there
may be accidental Makefile existing in there, causing unexpected
results.
--
Vasil Dimov
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 155 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20060110/9dd2103e/attachment.bin
More information about the freebsd-ports
mailing list