From owner-freebsd-current@FreeBSD.ORG Sat Sep 11 07:41:29 2010 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 611BD106566C for ; Sat, 11 Sep 2010 07:41:29 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2001:470:1f0b:105e::1ea]) by mx1.freebsd.org (Postfix) with ESMTP id E2C9A8FC0A for ; Sat, 11 Sep 2010 07:41:28 +0000 (UTC) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id A407AA09FC; Sat, 11 Sep 2010 07:41:27 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: text/plain; charset=us-ascii From: Stefan Bethke In-Reply-To: Date: Sat, 11 Sep 2010 09:41:25 +0200 Content-Transfer-Encoding: quoted-printable Message-Id: <766041FD-DAE2-484A-AA8F-60DA99A86B9C@lassitu.de> References: <86d3smb83g.fsf@gmail.com> To: Gordon Tetlow X-Mailer: Apple Mail (2.1081) Cc: Anonymous , freebsd-current@freebsd.org Subject: Re: CFR: Replace man/manpath/whatis/apropos with a shell script X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Sep 2010 07:41:29 -0000 Am 11.09.2010 um 09:35 schrieb Gordon Tetlow: > On Thu, Sep 9, 2010 at 8:17 PM, Anonymous wrote: >=20 >> Gordon Tetlow writes: >>=20 >>> 2. Imports configuration from /usr/local/etc/man.d/*.conf and >> /etc/man.conf >>> (purposefully changed the manpath.config file since it is a = different >>> syntax). >>=20 >> Hmm, and if LOCALBASE !=3D /usr/local? hier(7) does not specify = /usr/local >> as the only place installed packages may reside in, only default one. >>=20 >=20 > That variable is not easily found in shell. I'm open to suggestions on = how > to figure it out. I suppose I could try something like make -V = LOCALBASE > since it would be in /etc/make.conf if it is set. Another alternative = would > be to parse the PATH and look for ../etc/man.d for each path = component. That > would be even more generic (and allow for the user to customize it > potentially). Take it from /etc/man.conf, like the rc.d paths are resolved? Stefan --=20 Stefan Bethke Fon +49 151 14070811