Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Mar 2003 09:13:06 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        freebsd-questions@FreeBSD.org
Subject:   Re: /usr/share/man - Rules for showing/gernerating manual pages
Message-ID:  <20030327071306.GA680@gothmog.gr>
In-Reply-To: <20030326172343.GA32486@moo.holy.cow>
References:  <20030325194800.GA60649@moo.holy.cow> <20030325233934.GD2387@gothmog.gr> <20030326172343.GA32486@moo.holy.cow>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2003-03-26 12:23, parv <parv_fm@emailgroups.net> wrote:
>in message <20030325233934.GD2387@gothmog.gr>,
>wrote Giorgos Keramidas thusly...
>> But you can safely delete (or simply move away) the existing
>> /usr/share directory right before `make installworld'...
>>
>> 	# cd /usr
>> 	# mv share share.old
>> 	# mtree -deU < /etc/mtree/BSD.usr.dist
>>
>> and then run `make installworld' in /usr/src.  After installworld
>> finishes successfully, you can delete share.old.
>
> Giorgos, i would that the next time; thanks.
>
> Having said that, i was hoping for something like the following (for
> FreeBSD)...
>
>   http://groups.google.com/groups?selm=2d543m%24n30%40mail.boku.ac.at

Ah, yes.  Now I see that I misread the original post.

Well, man(1) in FreeBSD is a slightly modified version of GNU man.
The basic idea of locating a manpage and convnerting it to a
preformatted ``cat page'' remains the same.  The details of the
conversion can always be found in /usr/src/gnu/usr.bin/man/man/man.c
(look at the definition of the glob_for_filename() and try_section()
functions in this file).

It's pretty much the same as the post you quoted above.  Some of the
information that you want to find out is actually part of the output
of this command:

	$ man -d ls 2>&1 | more

I hope this time, I'm not very off-topic :)

- Giorgos



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030327071306.GA680>