echo off
echo fmt.bat for 2 and 3 languages
if exist hyphen.tex goto ex
del *.bak
del *.log
del *.tex
del *.sty
del *.ch
del nfss*.fmt

copy \emtex\texinput\lplain.tex
copy \emtex\texinput\lhyphen.tex
copy \emtex\texinput\hyconfig.tex hyphen.tex
copy \emtex\texinput\hyacceur.tex
copy \emtex\texinput\enhyph.tex
copy \emtex\texinput\enhyphex.tex
copy \emtex\texinput\f8hyph.tex
copy \emtex\texinput\ghyphen.min
copy \emtex\texinput\language.efg *.dat
copy \emtex\texinput\lfonts.new lfonts.tex
copy \emtex\texinput\fontdef.dc fontdef.tex
copy \emtex\texinput\preload.dc preload.tex
copy \emtex\texinput\dclfont.sty xxxlfont.sty 
copy \emtex\texinput\latex.tex
copy \emtex\texinput\acmacros.sty
copy \emtex\texinput\dc-nfss.tex 
    tex386 -i -8 -mt20000 -c850DCTEX.TCP dc-nfss \dump
goto done

:ex
echo The following files should be removed or renamed before running fmt:
if exist hyphen.tex echo hyphen.tex
goto end

:error
echo Error

:done
if exist hyphen.tex del hyphen.tex
:end
