home *** CD-ROM | disk | FTP | other *** search
-
- MAN, written by Kai Iske July 16. 1993
- This is PUBLIC DOMAIN; you may do with it whatever you like
-
-
- If you change/republish/delete/sell the program or do anything similar, please
- be so kind to keep my name within the program and all the other files.
-
- MAN was written because of the fact that MRMan (by Mark Rinfret) had some
- severe problems under OS 2.x (or was it 3.x). Anyway, I wrote this tool in
- order not to have to keep in mind the locations of all the various man pages I
- spread across the subdirectories of my MAN: directory.
-
- MAN was written using SAS 6.3....
-
- !!! Man requires OS 2.x and up to run !!!
-
-
- -----------------
- What does MAN ???
- -----------------
-
-
- Well, it is a MAN command similar to the one found on any UNIX System. Simply
- type "man dummy" and the manual pages (documentation) for a file called dummy
- will be searched for. If man was successful in finding the appropriate file,
- a textviewer will be used to display the documentation.
-
- You may configure MAN in order to tell the program where to find the man pages
- and what text viewers to use. Wait a minute. Textviewers ??? Yep, MAN
- recognizes the following suffixes as to be part of man pages:
-
- .doc - Simple ASCII text file
- .man - Simple ASCII text file
- .guide - Got it, AmigaGuide compatible guide file.
-
- So now you know why there are different textviewers.
-
- For example...
-
- You have the documentation for a program called "KCommodity" somewhere
- within your docs directory. The doc file is called "KCommodity.Man". In
- order to get the documentation loaded by man, simply type:
-
- MAN KCommodity
-
- ...and the ASCII textviewer will be used. If your filename ends up with
- .guide ("KCommodity.guide"), MAN assumes it to be a GUIDE file and will
- use the GUIDE Viewer instead...
-
- See, no suffixes needed. MAN will take the first file matching a
- suffix mentioned above.
-
-
-
- ----------------------
- How to install MAN ???
- ----------------------
-
- Copy the main program to a directory within your search paths (i.e. C:).
-
- Simply set three environment variables, so that MAN knows what to do:
-
-
-
- MANPATHS - This variable tells man where to look for man pages.
-
- For example...
-
- SetEnv MANPATHS "MAN:,MAN:CSHDOC|MAN:HPDOCS,MAN:AUTODOCS"
-
- You see, you may either use "," or the "|" as seperators between
- directory names.
-
-
-
-
- MANVIEW - This one is the path (including filename) for the
- textviewer you wish to use for displaying normal
- ASCII files.
-
- For example...
-
- SetEnv MANVIEW "SYS:Utilities/More"
-
- REMEMBER: Complete path and filename
-
-
-
-
- MANVIEWAG - This one is used to set the path (and filename) for
- the AmigaGuide GUIDE-Viewer.
-
- For example...
-
- SetEnv MANVIEWAG "SYS:Utilities/AmigaGuide"
-
- REMEMBER : Complete path and filename
-
-
-
- It is best to place those lines within your S:User-StartUp file.
-
-
-
- -----------
- Version 1.0
- -----------
- - initial release
-
-
- -----------
- Version 1.1
- -----------
- - Accidentially called Exit() instead of exit(), which
- prevented the program to pass the cleanup code of SAS.
- So a lock to the directory was kept and the shell could
- never been left.............
-
- -----------
- Version 1.2
- -----------
- - Used MAN as a keyword for the template which prevented MAN
- to accept inputs like "man man".
-
-
- Hope you like it, if not, delete it......
-
-
-
- So long,
-
- Kai
-
-
-
-
- --- Kai Iske
- Brucknerstrasse 18, 63452 Hanau, Germany, Tel.: +49-(0)6181-850181
- Z-Net : KAI@SWEET.ZER usenet : kai@iske.adsp.sub.org
- internet : iske@informatik.uni-frankfurt.de IRC:kiske
- ---- Life sucks ----
-