Re: /usr/share/man - Rules for showing/gernerating manual pages

2003-03-26 Thread parv
in message [EMAIL PROTECTED],
wrote Giorgos Keramidas thusly...

 On 2003-03-25 14:48, parv [EMAIL PROTECTED] wrote:
  Could somebody tell me what are the rules for showing/generating man
  pages in (man|cat)? directories (in /usr/share/man)?
 
 
 Manpages are an integral part of the program source for many of the
 base system utilities.

That is good to know (that all man pages reside _at_least_ in
/usr/share/man/man? directories).


 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


  - parv

-- 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /usr/share/man - Rules for showing/gernerating manual pages

2003-03-26 Thread Giorgos Keramidas
On 2003-03-26 12:23, parv [EMAIL PROTECTED] wrote:
in message [EMAIL PROTECTED],
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 21 | more

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

- Giorgos

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: /usr/share/man - Rules for showing/gernerating manual pages

2003-03-25 Thread Giorgos Keramidas
On 2003-03-25 14:48, parv [EMAIL PROTECTED] wrote:
 Could somebody tell me what are the rules for showing/generating man
 pages in (man|cat)? directories (in /usr/share/man)?

 Given that i upgrade from source, are some of the man pages in
 /usr/share/man available only pre-formatted (in cat? directories not
 in man?)?

 (I am cleaning up /usr, so i want to throw out the rotten things.)

Manpages are an integral part of the program source for many of the
base system utilities.  Therefore, it's difficult to run just `one'
command and have all the manpages that `installworld' gives you.

But you can safely delete (or simply move away) the existing
/usr/share directory right before `make installworld'...

Try this:

# 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.  It's no longer
needed (unless you have manually installed stuff in there).

:-)


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message