Contents
========

* Description
* File key
* Compile on DOS with BCC
* Compile on DOS with Watcom
* Cross-compile on Slackware with BCC
* Cross-compile on Slackware with Watcom
* Packaging on Slackware

Description
===========

A smaller, cheaper, faster SED implementation.

minised.com for DOS built with dev86 BCC.

Mini-sed is a smaller, cheaper, faster SED implementation. Minix uses
it. GNU used to use it, until they built their own sed around an
extended (some would say over-extended) regexp package.

From: <http://exactcode.com/opensource/minised/>

File key
========

minised.com      - minised compiled with BCC
minised.exe      - minised compiled with Watcom
src\man2txt.awk  - Convert man page to plain text
src\mkbcc.bat    - Compile on DOS with BCC
src\mkclean.bat  - Clean up after build
src\mkwatcom.bat - Compile on DOS with Watcom
src\sedcomp.c    - Modified to work with BCC
src\sedexec.c    - Modified to work with BCC
src\sedcomp.old  - Original sedcomp.c
src\sedexec.old  - Original sedexec.c

Compile on DOS with BCC
=======================

    Run mkbcc.bat

mkbcc.bat uses bcc, groff, and mawk

bcc
<gopher://tilde.pink/1/~bencollver/files/dos/devel/bcc/>

groff
<ftp://ftp.mirrorservice.org/sites/
ftp.delorie.com/pub/djgpp/current/v2gnu/gro1223b.zip>

mawk
<gopher://tilde.pink/1/~bencollver/files/dos386/devel/mawk/>

Compile on DOS with Watcom
==========================

    Run mkwatcom.bat

Cross-compile on Slackware with BCC
===================================

    $ sed -i Makefile -e 's/^CFLAGS/#CFLAGS/'
    $ patch -b -p0 <minised.dif
    $ PATH=$PATH:/usr/lib64/bcc make CC=bcc     \
        CFLAGS="-I/usr/lib64/bcc/include -ansi" \
        LDFLAGS="-Md -L/usr/lib64/bcc"
    $ mv minised minised.com

Cross-compile on Slackware with Watcom
======================================

    $ sed -i Makefile -e 's/^CFLAGS/#CFLAGS/'
    $ patch -b -p0 <minised.dif
    $ make clean
    $ make CC=owcc CFLAGS="-march=i86 -mtune=i86 -mcmodel=l -b dos" \
        LDFLAGS="-b dos -s"

Packaging on Slackware
======================

    $ mkdir msed116e
    $ cp BUGS LICENSE README msed116e/
    $ GROFF_NO_SGR=1 TERM=dumb groff -Tascii -man minised.1 |\
        col -b >msed116e/minised.txt
    $ cp dos.txt msed116e/
    $ cd msed116e
    $ for f in *; do unix2dos $f; done
    $ mv minised.com minisedw.com msed116e/
    $ zip -r msed116e.zip msed116e
