home *** CD-ROM | disk | FTP | other *** search
-
- MAN, written by Kai Iske July 27. 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 / 6.50....
-
- !!! 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.
-
-
- You may even add features to MAN using environment variables. Read on...
-
-
- ----------------------
- 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
-
-
-
- Additionally there are three more environment variables you may use to add
- extensions and functions to man. These are :
-
- MANNRMEXT - You may use this variable to add extensions to the already
- known, which should be treated (shown) as plain ASCII files.
-
- For example...
-
- SetEnv MANNRMEXT ".txt|.asc|.dok"
-
- Will add these extensions to known ASCII files
-
-
-
-
- MANAGEXT - Using this variable you may add extensions for AmigaGuide
- files
-
- For example
-
- SetEnv MANAGEXT ".bla|.blo|.blu"
-
- Will add these extensions to known AmigaGuide compatible files
-
-
-
-
- MANNOVIEW - If a file doesn`t end up with an extension (starting with a
- dot), MAN will use the perdefined ASCII viewer to display
- such a file. You may change the viewer for suche files using
- this variable. Additionally this option may be turned off,
- when you issue a zeor length string "".
-
- For example
-
- SetEnv MANNOVIEW "SYS:Utilities/AmigaGuide"
-
- Will tell MAN to display files, without extension, using AmigaGuide
-
-
-
-
- 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".
-
-
- -----------
- Version 1.3
- -----------
- - Added CTRL-C checking
- - Recompiled using SAS 6.50
- - Reduced stack usage
- - Reduced executable size
-
-
- -----------
- Version 1.4
- -----------
- - DOS-Library wasn`t closed
-
-
- -----------
- Version 1.5
- -----------
- - Referenced free memory area
-
-
- -----------
- Version 1.6
- -----------
- - Added MANRMEXT, MANAGEXT and MANNOVIEW options,
- which may be used for extensibility of MAN
- (Somehow suggested by : Michael 'Mick' Hohmann)
-
-
- 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 ----
-