* Re: How to make local man page viewable by man
[not found] <3p6uqn$1hm1@ctsc.hkbc.hk>
1995-05-15 4:00 ` How to make local man page viewable by man Tony Nugent
1995-05-15 4:00 ` Dan Pop
@ 1995-05-15 4:00 ` Volker Hejny
1995-05-19 4:00 ` Peter da Silva
3 siblings, 0 replies; 4+ messages in thread
From: Volker Hejny @ 1995-05-15 4:00 UTC (permalink / raw)
In article <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 ?
|>
The OSF/1 man command understand the evironment variable
MANPATH.
Do the command:
set MANPATH=/usr/man:/usr/local/man
or something else, depending on your shell, and the man command looks
also in the additional trees.
This may not be true for other UNIX-dialects.
Hope this helps,
V. Hejny
==============================================================================
Volker Hejny | Tel.: 0641 - 702 2783 | \|/ ____ \|/
II. Physikalisches Institut | 2760 | @~ / .. \ ~@
Universitaet Giessen | Fax : 0641 - 74390 | \_( \__/ )_/
Heinrich-Buff-Ring 16 | | \____/
D-35392 Giessen | Internet: hejny@marvin.physik.uni-giessen.de
==============================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to make local man page viewable by man
[not found] <3p6uqn$1hm1@ctsc.hkbc.hk>
@ 1995-05-15 4:00 ` Tony Nugent
1995-05-15 4:00 ` Dan Pop
` (2 subsequent siblings)
3 siblings, 0 replies; 4+ messages in thread
From: Tony Nugent @ 1995-05-15 4:00 UTC (permalink / raw)
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
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to make local man page viewable by man
[not found] <3p6uqn$1hm1@ctsc.hkbc.hk>
1995-05-15 4:00 ` How to make local man page viewable by man Tony Nugent
@ 1995-05-15 4:00 ` Dan Pop
1995-05-15 4:00 ` Volker Hejny
1995-05-19 4:00 ` Peter da Silva
3 siblings, 0 replies; 4+ messages in thread
From: Dan Pop @ 1995-05-15 4:00 UTC (permalink / raw)
In <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 ?
There is only one step: put pine.1 in /usr/local/man/man1 (if it's in
nroff -man format) or in /usr/local/man/cat1 (if it's already formatted).
man will search /usr/local/man by default and will find the man page.
Additionally, you may want to run catman on /usr/local/man, to have a
whatis database created. Read the catman(8) man page for details.
Dan
--
Dan Pop
CERN, CN Division
Email: danpop@afsmail.cern.ch
Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to make local man page viewable by man
[not found] <3p6uqn$1hm1@ctsc.hkbc.hk>
` (2 preceding siblings ...)
1995-05-15 4:00 ` Volker Hejny
@ 1995-05-19 4:00 ` Peter da Silva
3 siblings, 0 replies; 4+ messages in thread
From: Peter da Silva @ 1995-05-19 4:00 UTC (permalink / raw)
In article <3p6uqn$1hm1@ctsc.hkbc.hk>, PM Wong <s11976@ctsc.hkbc.hk> wrote:
> 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 ?
If you set your MANPATH environment variable to include /usr/local/man
(or wherever the root of your local man pages are) it will pick them up
automagically.
--
Peter da Silva `-_-'
Network Management Technology Incorporated 'U`
1601 Industrial Blvd. Sugar Land, TX 77478 USA
+1 713 274 5180 "Har du kramat din varg idag?"
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1995-05-19 4:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <3p6uqn$1hm1@ctsc.hkbc.hk>
1995-05-15 4:00 ` How to make local man page viewable by man Tony Nugent
1995-05-15 4:00 ` Dan Pop
1995-05-15 4:00 ` Volker Hejny
1995-05-19 4:00 ` Peter da Silva
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox