Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Tony Nugent <T.Nugent@sct.gu.edu.au>
Subject: Re: How to make local man page viewable by man
Date: 1995/05/15	[thread overview]
Message-ID: <3p7u9p$ig2@ngriffin.itc.gu.edu.au> (raw)
In-Reply-To: 3p6uqn$1hm1@ctsc.hkbc.hk

s11976@ctsc.hkbc.hk (PM Wong) writes:

>Don't know if the procedure is unix-universal. We just set up our OSF/1
>Ver 3.0 Unix system, and would like to copy man pages (e.g. pine.1
>, pico.1  ...) into the local man directory so they can be used by the
>man command.
>Could someone tell me the steps to do it ?


Put the unformatted manpage.1 file goes into a directory called,
say:

$HOME/man/man1

(I use ~/bin/man/man1 myself), and anothermanpage.8 goes into:

$HOME/man/man8

and so on.  Note the correllation of the numeric extension of the
manpage file with the name of the man subdirectory.

If the man pages are already formatted, then put them into
corresponding subdirectories called $HOME/man/cat1 $HOME/man/cat2
etc.

Then run catman with something like the following command:

catman -w -M ~/man

Check the man pages for man, and for catman for the correct
syntax; it man vary from system to system.  The -w switch is to
stop the creation of the formatted ~/man/cat1/* files.

This will create a ~/man/whatis or ~/man/windex file (depending
on your system).

Then (for [t]csh, modify for sh shells) in ~/.login have the
following:

setenv MANPATH $HOME/man:$MANPATH

If you include your own manpath directory early in the $MANPATH
variable, then your manpages get read before any duplicates
elsewhere on the system.

Now you are set! :-)

Cheers
Tony
                                                             \\|//
                                                             (O-O)
  -------------------------------------------------------oOO--(_)--OOo-----
     Tony Nugent  Griffith University, Brisbane, Queensland, Australia 
          Email:  T.Nugent@sct.gu.edu.au   tnugent@gucis.cit.gu.edu.au
  -------------------------------------------------------------------------



  parent reply	other threads:[~1995-05-15  4:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3p6uqn$1hm1@ctsc.hkbc.hk>
1995-05-15  4:00 ` How to make local man page viewable by man Volker Hejny
1995-05-15  4:00 ` Dan Pop
1995-05-15  4:00 ` Tony Nugent [this message]
1995-05-19  4:00 ` Peter da Silva
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox