Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jan 2006 16:22:42 +0200
From:      Vasil Dimov <vd@datamax.bg>
To:        Doug Barton <dougb@FreeBSD.org>
Cc:        Jeremy Messenger <mezz7@cox.net>, KOMATSU Shinichiro <koma2@lovepeers.org>, freebsd ports <freebsd-ports@freebsd.org>
Subject:   Re: New /bin/sh based script to manage ports
Message-ID:  <20060110142242.GA10276@qlovarnika.bg.datamax>
In-Reply-To: <43C01E69.1090907@FreeBSD.org>
References:  <43BCF31F.8050900@FreeBSD.org> <op.s2w24xlg9aq2h7@mezz.mezzweb.com> <43BF7F8D.6080809@FreeBSD.org> <20060107092614.GH79296@pcwin002.win.tue.nl> <43BF8EF1.3000005@lovepeers.org> <op.s20rwwrk9aq2h7@mezz.mezzweb.com> <43C01E69.1090907@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--sdtB3X0nJg68CQEu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sat, Jan 07, 2006 at 12:02:49PM -0800, Doug Barton wrote:
> Jeremy Messenger wrote:
>=20
> ># make -V PORTSDIR
> >[...empty...]
> ># pwd
> >/root
> >
> >It doesn't work here. I am not sure why I would get empty unless I have=
=20
> >Makefile or go in one of port directory.
>=20
> If you set this variable in /etc/make.conf, you will get a value with thi=
s=20
> method (I tested it last night). What I did in my script was to do the ma=
ke=20
> -V, and if it was empty to set the variable to the default.
>=20

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.

--=20
Vasil Dimov

--sdtB3X0nJg68CQEu
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----

iD8DBQFDw8MyFw6SP/bBpCARAsVgAJ9uy2NMS8F38seALVVNsPUrfnEzRACgnbKS
yru2AtYl802DgUCLb35nTpc=
=ds0p
-----END PGP SIGNATURE-----

--sdtB3X0nJg68CQEu--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060110142242.GA10276>