From owner-freebsd-ports@FreeBSD.ORG Tue Jan 10 14:22:45 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C42D16A41F; Tue, 10 Jan 2006 14:22:45 +0000 (GMT) (envelope-from vd@datamax.bg) Received: from jengal.datamax.bg (jengal.datamax.bg [82.103.104.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CC8943D70; Tue, 10 Jan 2006 14:22:44 +0000 (GMT) (envelope-from vd@datamax.bg) Received: from qlovarnika.bg.datamax (qlovarnika.bg.datamax [192.168.10.2]) by jengal.datamax.bg (Postfix) with SMTP id DF928B833; Tue, 10 Jan 2006 16:22:42 +0200 (EET) Received: (nullmailer pid 10455 invoked by uid 1002); Tue, 10 Jan 2006 14:22:42 -0000 Date: Tue, 10 Jan 2006 16:22:42 +0200 From: Vasil Dimov To: Doug Barton Message-ID: <20060110142242.GA10276@qlovarnika.bg.datamax> References: <43BCF31F.8050900@FreeBSD.org> <43BF7F8D.6080809@FreeBSD.org> <20060107092614.GH79296@pcwin002.win.tue.nl> <43BF8EF1.3000005@lovepeers.org> <43C01E69.1090907@FreeBSD.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sdtB3X0nJg68CQEu" Content-Disposition: inline In-Reply-To: <43C01E69.1090907@FreeBSD.org> X-OS: FreeBSD 6.0-STABLE User-Agent: Mutt/1.5.11 Cc: Jeremy Messenger , KOMATSU Shinichiro , freebsd ports Subject: Re: New /bin/sh based script to manage ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vd@datamax.bg List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jan 2006 14:22:45 -0000 --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--