#!/bin/sh
# A shell script to perform modifications on the mfd.h file for cmf
# to make trapmf instead of inimf.
#
# To use it, say
#	ini_to_trap mfd.h trap_mfd.ch
#
ed - $1 <<edscriptend
/undef	TRAP/
s/undef/define/p
/memmax/
s/[0-9][0-9]*/3000/p
/maxinternal/
s/[0-9][0-9]*/100/p
/errorline/
s/[0-9][0-9]*/64/p
/halferrorline/
s/[0-9][0-9]*/32/p
/maxprintline/
s/[0-9][0-9]*/72/p
/screenwidth/
s/[0-9][0-9]*/100/p
/screendepth/
s/[0-9][0-9]*/200/p
/gfbufsize/
s/[0-9][0-9]*/8/p
/memtop/
s/[0-9][0-9]*/3000/p
w $2
edscriptend
