X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; q=dns; s=default; b=QDJu9b61Bjf3a95L
	8bkR6x0arMi0HydthrjsRJZNAYWdE3+hZvY0Yj+SLT4sfm8QtpKfZC56RCvb3Lx4
	KLebQJh32BZKvKV/7GgJ5wdzKxAln0/TuMEwdPA//Asr8eU15UNhgQuGplpdmswr
	MFcfeCb3nMxBSU9o3s3nMi8n978=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:subject:to:references:from:message-id:date
	:mime-version:in-reply-to:content-type
	:content-transfer-encoding; s=default; bh=oTPAcwXcAsTRuWL1JU44AI
	cAo1M=; b=vwnETpoqhYgNRqQkOc0vo/JDRGngJqkHyHLTy2wPePY1F6QvFRaJaq
	6fPsyez9z2U3uW+/lWj7aBfG+1Y4ec02wr+gS2N5XHlJ4hq+z+cKvIN7Y+iFRXj7
	s7Yt/T98hp14dUuam4u6ZVm7cXwCO8MIIX0KEziRgrBAvhwAs99X0=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=2.2 required=5.0 tests=AWL,BAYES_00,BIZ_BODY,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 spammy=D*in, ALSO, synopsis, username
X-HELO: mout.gmx.com
Subject: Re: How to Setup Multiple System Distro Manpages
To: cygwin@cygwin.com
References: <dff40454-bca5-6f2d-183f-7f4707ff1059@SystematicSw.ab.ca> <f723202a-dbe2-b95e-6dca-1012ca9fd2c7@mail.com> <e85d959b-289a-106b-b5e5-6a4a4974fccf@SystematicSw.ab.ca>
From: john doe <johndoe65534@mail.com>
Message-ID: <c33f508d-cec0-0ae9-936a-9751d26e1e86@mail.com>
Date: Sun, 15 Jul 2018 14:19:38 +0200
MIME-Version: 1.0
In-Reply-To: <e85d959b-289a-106b-b5e5-6a4a4974fccf@SystematicSw.ab.ca>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-IsSubscribed: yes
Note-from-DJ: This may be spam

On 7/15/2018 9:21 AM, Brian Inglis wrote:
> On 2018-07-15 00:39, john doe wrote:
>> On 7/14/2018 10:50 PM, Brian Inglis wrote:
>>> I've installed a few WSL distros for comparison and downloaded a bunch of other
>>> manpage sets and unpacked them:
>>> $ l /proc/cygdrive/c/usr/local/share/man/
>>> cat1/          debian@                      man1p/  mann/           SunOS-5.10/
>>> cat3/          Debian-8.1.0/                man2/   netbsd@         suse@
>>> cat5/          freebsd@                     man3/   NetBSD-7.1/     SuSE-11.3/
>>> cat7/          FreeBSD-12-current/          man3p/  openbsd@        ubuntu@
>>> cat8/          FreeBSD-ports-11.1-RELEASE/  man4/   OpenBSD-6.2/    x@
>>> centos@        hpux@                        man5/   ports@          X11R7.4/
>>> CentOS-7.1/    HP-UX-11.22/                 man6/   redhat@
>>> darwin@        man0p/                       man7/   RedHat-9-i386/
>>> Darwin-7.0.1/  man1/                        man8/   solaris@
>>> but despite reading docs, adding links and changing configs, I'm unable to get
>>> man/-db to access these with or without the -m system switch.
>>> I know I must be missing some essential point, but searching has not come up
>>> with anything to help me fix this.
>>> Has anyone here set this up and can suggest an approach that will work?
>> In addition to the other answers; maybe exporting those directories in the
>> 'PATH' env variable...
> 
> I already tried listing them all at the end of man-db.conf and MANPATH.
> 

I was talking about the env 'PATH' var and not 'MANPATH' but that does 
not make any difference. :)

 From the test I've done and using:

https://www.cyberciti.biz/faq/linux-unix-creating-a-manpage/

$ cat ${HOME}/try/mann/bogus.n
.\" Manpage for bogus.
.\" Contact vivek@nixcraft.net.in to correct errors or typos.
.TH man 8 "06 May 2010" "1.0" "bogus man page"
.SH NAME
bogus \- create a new LDAP user
.SH SYNOPSIS
bogus [USERNAME]
.SH DESCRIPTION
bogus is high level shell program for adding users to LDAP server.  On 
Debian, administrators should usually use bogus.debian(8) instead.
.SH OPTIONS
The bogus does not take any options. However, you can supply username.
.SH SEE ALSO
bogus(8), passwd(5), bogus.debian(8)
.SH BUGS
No known bugs.
.SH AUTHOR
Vivek Gite (vivek@nixcraft.net.in)

$ man --manpath=${HOME}/try bogus
man(8) 
             bogus man page 
                                  man(8)

NAME
        bogus - create a new LDAP user

SYNOPSIS
        bogus [USERNAME]

DESCRIPTION
        bogus is high level shell program for adding users to LDAP 
server.  On Debian, administrators should usually use bogus.debian(8) 
instead.

OPTIONS
        The bogus does not take any options. However, you can supply 
username.

SEE ALSO
        bogus(8), passwd(5), bogus.debian(8)

BUGS
        No known bugs.

AUTHOR
        Vivek Gite (vivek@nixcraft.net.in)

1.0 
               06 May 2010 
                                  man(8)

HTH

-- 
John Doe

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

