.KEY basefile,hfile,defnfile
.BRA {
.KET }
.DEF hfile /common/extra.h

; Amiga common convert script
; 
; basefile   is the basename of the file to be converted
; hfile      is #included in the C file.
; defnfile   is prepended along with the common definitions.

echo "join /common/common.defines {defnfile} {basefile}.p \"
join /common/common.defines {defnfile} {basefile}.p TO t:web2c.in
echo "| web2c -h{hfile} -c{basefile} -a \"
/web2c/web2c <t:web2c.in >t:fixwrites.in -h{hfile} -c{basefile} -a
delete t:web2c.in quiet
echo "| fixwrites >{basefile}.c {basefile}"
/web2c/fixwrites <t:fixwrites.in >{basefile}.c {basefile}
delete t:fixwrites.in quiet
