I just take an existing man-page and hack it. How do I name the man-page for progam FOO? Is it 'FOO.3" ??
And in which dir to I to ?? (to "/usr/local/man/man*" ?? ) On Thu, Apr 20, 2023 at 5:44 AM Pham Ngoc-Dung <ifa26...@outlook.com.vn> wrote: > > Check out the manpage for mdoc(7), section "TITLE MACROS". There is a list > of section numbers there, maybe that's what you needed. > ________________________________ > Từ: netbsd-users-ow...@netbsd.org <netbsd-users-ow...@netbsd.org> thay mặt > cho Todd Gruhn <tgru...@gmail.com> > Đã gửi: 20 Tháng Tư 2023 3:41 SA > Đến: Jeremy C. Reed <r...@reedmedia.net> > Cc: Netbsd-Users-List <netbsd-users@netbsd.org> > Chủ đề: Re: making man-pages > > Did I say that write? > > > I write FOO -- make manpage 'FOO.? ' > > SOOO, manpage is FOO.3? > Where do I put this? > > On Wed, Apr 19, 2023 at 6:40 PM Jeremy C. Reed <r...@reedmedia.net> wrote: > > > > On Wed, 19 Apr 2023, Todd Gruhn wrote: > > > > > If I write a program, and a man-page with it; where do I install this > > > man-page ?? > > > > See the manpath on your NetBSD system: > > man -p > > > > That shows what directories actually currently has manuals. > > So also see: > > /etc/man.conf > > > > A common place to install your own manpage is > > /usr/local/man/man1/ > > > > The man manpage or man itself has a bug: > > the man.c comments say -p prints the directories containing manpages. > > The manpage says -p prints the path. > > > > But actually -p prints the directories from the search path that exist > > regardless if contain manpages or not. > > > > Okay if I commit this? > > > > .It Fl p > > Print the search path for the manual pages. > > +This excludes cat page directories and non-existent directories. > > > > Fix man.c comments too? > > Or should the code be fixed to only -p print directories containing > > a man page?