#!/bin/sh
#
#       @(#)convert     1.2     8/19/88
#
# This script does all the work necessary to convert tex.p to a C program.
#
cp tex.pool ../ctex/tex.pool
cat tex.defines tex.p \
        | ../web2cdir/web2c -t \
        | ../web2cdir/fixwrites -t \
        | ../web2cdir/regfix \
        | (cd ../ctex; ../web2cdir/splitup; \
                ../web2cdir/fix386ixccbug itex.c \
          )
cat coerce.h fixcoerce.h > ../ctex/coerce.h
rm -f coerce.h
cd ../ctex
cp texd.h orig_texd.h
/texdir/ini_to_trip orig_texd.h trip_texd.h
