home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
MAWK113.ZIP
/
readme.now
< prev
Wrap
Text File
|
1993-04-24
|
3KB
|
67 lines
---------------------------------------
OS/2 port of MAWK-1.1.3 by Mike Brennan
---------------------------------------
This is a port of the AWK interpreter by Mike Brennan using the emx/gcc
package. The source can be obtained via anonymous ftp from oxy.edu .
MAWK ("Mike's AWK") is, in my opinion, superior to GNU's GAWK and can be
up to twice as fast. AWK - conoisseurs should definitely give it a try !
Building the OS/2 version
-------------------------
After the archive MAWK113 has been unzipped the subdirectory ./mawk113
contains the original source code as ftp'ed from oxy.edu. MAWK_OS2
contains some of the source files with OS/2 specific changes (no
diffs). To build an executable you must:
1. unzip MAWK_OS2 with 'unzip -o mawk_os2'. This will replace some
of the files in the directory ./mawk113, add more makefiles and
a new configuration file.
2. Go to the subdirectory ./mawk113/rexp and
[d]make -f makefile.os2
3. The files parse.c and parse.h in the subdirectory ./mawk113 were
made with yacc. Decide whether you want to re-bison 'parse.y'. If
you have bison and wish to recomile 'parse.y' then delete the
original files parse.h and parse.c (recommended).
4. Go to subdirectory ./mawk113 and either
[d]make -f makefile.os2
or
[d]make -f makefile.omf .
The latter command will create a smaller executable file but the
system() function of mawk will not work (see also: emxdoc.dev).
Remarks
-------
1. I do not claim to have produced a perfect port of mawk as can be
seen from the very small number of changes I have made to the source
code. There is probably plenty of room for improvements. This port
works for me and I did not take it any further. Some things, like
the BINARY mode are completely untested.
2. mawk passes the tests provided by M. Brennan. If you want to run the
tests again you have to do so manually. Look at the DOS batch file
to see how.
3. The OS/2 version of mawk uses the same convention for command line
programs as the DOS version. Single quotes (') are used to delimit
strings inside a command line program whereas double quotes (")
are used to enclose the program on the command line.
4. The executable file that comes with mawk113.zip should run under OS/2
and DOS as a stand-alone program (no DLLs required). According to
'emxdev.doc' system calls should not work under DOS.
Ulf Griesmann
Imperial College
Physics Department
Prince Consort Rd.
London SW7 2BZ, U.K. ugr@lsr.ph.ic.ac.uk