Here seem to be good instructions for adding a new manual page:

HowTo: Linux / UNIX Create a Manpage

In short, a manpage is simply a text file, with additional formatting information for troff

Its usually in the format

.\" Manpage for up. .\" Contact cheer_up@havesomechocolate.com to correct errors or typos. .TH man 8 "06 May 2010" "1.0" "name man page" .SH NAME up \- into a higher position or level .SH SYNOPSIS up [anything you like] .SH DESCRIPTION up is a pretty good place to be .SH OPTIONS up does not take any options, though you can choose the speed of your acent .SH SEE ALSO yes(1), time cat (2) cal 3() .SH BUGS No known bugs. Gravity is not a bug, "Its a feature" .SH AUTHOR Chris Stringfellow (cheer_up@havesomechocolate.com)

Save this as up

You can then view the manpage with man ./up from the same directory

Man pages are usually under /usr/local/man/man8/ and gzipped

You can copy over your manpage with cp up /usr/local/man/man8/up.1 then gzip it with gzip /usr/local/man/man8/name.1

You can then test it with man up - which should output something like this