From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f8c9b,dbdc155125cb8248 X-Google-Attributes: gidf8c9b,public X-Google-Thread: fee84,dbdc155125cb8248 X-Google-Attributes: gidfee84,public From: Tony Nugent Subject: Re: How to make local man page viewable by man Date: 1995/05/15 Message-ID: <3p7u9p$ig2@ngriffin.itc.gu.edu.au>#1/1 X-Deja-AN: 102710628 references: <3p6uqn$1hm1@ctsc.hkbc.hk> organization: Griffith University Brisbane Queensland Australia reply-to: T.Nugent@sct.gu.edu.au newsgroups: comp.unix.osf.osf1,comp.unix.questions 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 -------------------------------------------------------------------------