From owner-freebsd-current@FreeBSD.ORG Sat Sep 11 07:35:41 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 57B15106566B for ; Sat, 11 Sep 2010 07:35:41 +0000 (UTC) (envelope-from gordon.tetlow@gmail.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1BE748FC0C for ; Sat, 11 Sep 2010 07:35:40 +0000 (UTC) Received: by iwn34 with SMTP id 34so3435325iwn.13 for ; Sat, 11 Sep 2010 00:35:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=ac4nGG1ZpDOxJbAaHGeFN011TRVMsCgxhTX54IQgWcg=; b=tCTvvz1Lt+N0Qbd9tAuKNvdcH0MHxfOR/h1vwVb449w4q7wjjg4hsr72rXMfh9sqN+ eR0WwTAfO9pMs6OaXc7bA9SNzgfIy//VmM8BSCjlZofib8pB+HG0hW9CAc7AfkxIGPNR mgf4nhPQhPWd/CuGuczdtpsPlex1b6V6TnuPo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=qhvjEfttovKU+EHc8gQnyN0cSbHGnBaq0WM8qV1ulQF1UykzHNyMDmRVxLcS4M7Fh1 k6AI4AKHgFa+OYY0Sdg1wAk3RM6XxlS+PPNhKOV87rHKD4FktzlZhS3Kq9EIG8jcVE6l phSraWs4PE7ShWIqoG3BPCbOUZ6thWFibEVsw= MIME-Version: 1.0 Received: by 10.231.19.3 with SMTP id y3mr2231775iba.156.1284190540570; Sat, 11 Sep 2010 00:35:40 -0700 (PDT) Sender: gordon.tetlow@gmail.com Received: by 10.231.156.78 with HTTP; Sat, 11 Sep 2010 00:35:40 -0700 (PDT) In-Reply-To: <86d3smb83g.fsf@gmail.com> References: <86d3smb83g.fsf@gmail.com> Date: Sat, 11 Sep 2010 00:35:40 -0700 X-Google-Sender-Auth: hFi08PPgc6DUUv6ZFxRKizRUqw4 Message-ID: From: Gordon Tetlow To: Anonymous Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: 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:35:41 -0000 On Thu, Sep 9, 2010 at 8:17 PM, Anonymous wrote: > Gordon Tetlow writes: > > > 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). > > Hmm, and if LOCALBASE != /usr/local? hier(7) does not specify /usr/local > as the only place installed packages may reside in, only default one. > 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). Thoughts? Gordon