List Info

Thread: How to create a manual page in FreeBSD




How to create a manual page in FreeBSD
user name
2006-01-12 19:35:38
Hi all,

Can anyone describe/give info, of how one can create a
manual page for a custom program in FreeBSD. A manual page
that would be accessible through the #man command. Is it
possible?

Thank you in advance
S.P.

_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
How to create a manual page in FreeBSD
user name
2006-01-12 20:05:54
On 2006-01-12 19:35, SPYRIDON PAPADOPOULOS <SP373student.apu.ac.uk> wrote:
> Hi all,
>
> Can anyone describe/give info, of how one can create a
manual
> page for a custom program in FreeBSD. A manual page
that would
> be accessible through the #man command. Is it possible?

Look at the existing manpages for examples, i.e.:

    /usr/src/bin/ls/ls.1

Then, you may get a good start for writing the groff source
of a
manpage by copying and modifying one of the files:

$ ls -l /usr/share/examples/mdoc/*.?
-r--r--r--  1 root  wheel  - 3620 Jan 12 20:16
/usr/share/examples/mdoc/example.1
-r--r--r--  1 root  wheel  - 7658 Jan 12 20:16
/usr/share/examples/mdoc/example.3
-r--r--r--  1 root  wheel  - 3079 Jan 12 20:16
/usr/share/examples/mdoc/example.4
-r--r--r--  1 root  wheel  - 7757 Jan 12 20:16
/usr/share/examples/mdoc/example.9

The complete reference of all groff mdoc macros that you can
use when
writing the document of the manpage is described in
groff_mdoc(7):

    $ man groff_mdoc

_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
How to create a manual page in FreeBSD
user name
2006-01-12 20:14:15
On Thu, Jan 12, 2006 at 07:35:38PM +0000, SPYRIDON
PAPADOPOULOS wrote:
> Hi all,
> 
> Can anyone describe/give info, of how one can create a
manual page for
> a custom program in FreeBSD. A manual page that would
be accessible
> through the #man command. Is it possible?

Study troff and write your man page with any old text
editor. Suggest
you place it in /usr/local/man/ the same as many others.

Easier than learning troff from the beginning would be to
take an
existing man page and make a copy of it. Edit the copy.
Proofread every
little change. Suggest /usr/share/man1/man.1.gz would be a
good man page
to use as your template.

Gzipping man pages is optional.

-- 
David Kelly N4HHE, dkellyHiWAAY.net
============================================================
============
Whom computers would destroy, they must first drive mad.
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )