Date: Sat, 11 Sep 2010 09:41:25 +0200 From: Stefan Bethke <stb@lassitu.de> To: Gordon Tetlow <gordon@tetlows.org> Cc: Anonymous <swell.k@gmail.com>, freebsd-current@freebsd.org Subject: Re: CFR: Replace man/manpath/whatis/apropos with a shell script Message-ID: <766041FD-DAE2-484A-AA8F-60DA99A86B9C@lassitu.de> In-Reply-To: <AANLkTikb%2B1aPG=awvhdKz=6q4p238TWHSORbu5j69L0D@mail.gmail.com> References: <AANLkTi=d1RqZhkJJ94DioZkBq3Pq5vrj0kxBSgdW%2BUUo@mail.gmail.com> <86d3smb83g.fsf@gmail.com> <AANLkTikb%2B1aPG=awvhdKz=6q4p238TWHSORbu5j69L0D@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Am 11.09.2010 um 09:35 schrieb Gordon Tetlow: > On Thu, Sep 9, 2010 at 8:17 PM, Anonymous <swell.k@gmail.com> wrote: >=20 >> Gordon Tetlow <gordon@tetlows.org> 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 <stb@lassitu.de> Fon +49 151 14070811
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?766041FD-DAE2-484A-AA8F-60DA99A86B9C>