home *** CD-ROM | disk | FTP | other *** search
- Subject: ILIB Unix Toolkit in C
-
- This is the first posting of the ILIB Toolkit, in nine parts.
- ILIB is a library of C functions, complementing the collection of
- routines in the standard C library. The toolkit is comprised
- of the C source code for ILIB, and thirtyfive standalone C programs
- (the tools) that rely on ILIB for parts of their functioning.
- The toolkit also contains a set of "man pages" in TeX that
- describe what each ILIB function does, and how/why the tools
- use the ILIB functions.
-
- The source resides in three parallel directories:
- i contains the C source and the makefile to create ilib.a,
- iex contains the standalone C programs (tools) linking with ilib,
- iman contains the "man pages" describing ilib and the tools.
-
- The target environment of the package is SysV or BSD Unix.
- To make ilib, go to the "i" directory;
- under SysV type
- make -DREALUNIX
- under BSD type
- make
- The target archive ilib.a will be left in the "i" directory; this is
- where the tools of the "iex" directory will look for it.
-
- To create the tools, go to the "iex" directory. As you compile
- the various .c files, they all expect to #include "../i/ilib.h" and
- link with "../i/ilib.a", so the relative position of this directory
- to the "i" directory is important. Under BSD type
- ./iexmake
- This C shell script will compile the individual source files, and
- put the separate tools in your $BIN directory.
- Under SysV, edit "mung.c" first, adding "-DREALUNIX" in its second
- line. Then execute "mung.c", to cause its own compilation, putting
- the "mung" tool in your $BIN directory. Use "mung" to add the
- "-DREALUNIX" definition to each of the other tool source files,
- then execute all these .c files in a loop.
-
- To process the manual, go to the "iman" directory, and type
- tex driver
- This creates a "device independent" output file "driver.dvi",
- encoding roughly 150 pages of text. Alternately, you can edit
- "single.tex", selecting a single chapter or a list of chapters
- to process; each chapter is listed under a separate file name
- beginning with "i" and ending with ".tex". Then type
- tex single
- to process the partial man pages. The manual expects direct
- access to the tool sources in the "../iex" directory, reading
- the "live text" of the tools' C code.
-
- The man.tex macro sets the text size on a printed page to 7.6x5.2
- inches. To center this on a laser printer, the author had
- good results with
- iptex -X 5 -Y 7
-
- All C sources that compile into ilib.a are in the Public Domain,
- clearly noted as such within each source text file. The entire
- text of the man pages, and the C code of all tools in "iex" is
- Copyright 1990, Istvan Mohos.
-