Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Jan 2006 11:20:08 +0100
From:      Stijn Hoop <stijn@win.tue.nl>
To:        KOMATSU Shinichiro <koma2@lovepeers.org>
Cc:        Jeremy Messenger <mezz7@cox.net>, Doug Barton <dougb@freebsd.org>, freebsd ports <freebsd-ports@freebsd.org>
Subject:   Re: New /bin/sh based script to manage ports
Message-ID:  <20060107102008.GI79296@pcwin002.win.tue.nl>
In-Reply-To: <43BF8EF1.3000005@lovepeers.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>

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

--KR/qxknboQ7+Tpez
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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:
> >=20
> >>However, the other two present a chicken and=20
> >>egg problem if I choose to use 'make -V' to get the values of these=20
> >>variables (where do I cd to?).
> >=20
> >=20
> > Why do you need to cd?
> >=20
> > [stijn@tangaloor] </tmp> ls Makefile
> > ls: Makefile: No such file or directory
> > [stijn@tangaloor] </tmp> make -V PORTSDIR
> > /net/freebsd/ports
>=20
> 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?
>=20
> Recently I thought the same problem, and
> the best solution I came up with till now is
> running the following command:
>=20
>     % echo '.include <bsd.port.mk>' | make -f - -V PORTSDIR
>=20
> 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

--=20
Light travels faster than sound. That's why some people appear bright
until you hear them speak.

--KR/qxknboQ7+Tpez
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQFDv5XYY3r/tLQmfWcRAiMoAKCkKb86Ofay5USKim1qtO4fg35U/wCcChY5
C5Iq6uHi8diYqp0O/Q6UTtc=
=nOOY
-----END PGP SIGNATURE-----

--KR/qxknboQ7+Tpez--



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