From owner-freebsd-ports@FreeBSD.ORG Sat Jan 7 20:02:52 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 488E716A41F for ; Sat, 7 Jan 2006 20:02:52 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mail2.fluidhosting.com [204.14.90.12]) by mx1.FreeBSD.org (Postfix) with SMTP id A605D43D45 for ; Sat, 7 Jan 2006 20:02:51 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 94614 invoked by uid 399); 7 Jan 2006 20:02:51 -0000 Received: from localhost (HELO ?192.168.1.100?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 7 Jan 2006 20:02:51 -0000 Message-ID: <43C01E69.1090907@FreeBSD.org> Date: Sat, 07 Jan 2006 12:02:49 -0800 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5 (X11/20051226) MIME-Version: 1.0 To: Jeremy Messenger References: <43BCF31F.8050900@FreeBSD.org> <43BF7F8D.6080809@FreeBSD.org> <20060107092614.GH79296@pcwin002.win.tue.nl> <43BF8EF1.3000005@lovepeers.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd ports , KOMATSU Shinichiro Subject: Re: New /bin/sh based script to manage ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Jan 2006 20:02:52 -0000 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