echo off
echo fmt.bat for 2 and 3 languages
del dlatexfg.fmt
del dlatexfr.fmt
del *.bak
del *.log
del *.tex
del *.sty
del *.min
del *.doc
del *.dat
del *.zip
copy \emtex\texinput\lfonts.tex
copy \emtex\texinput\latex.tex
copy \emtex\texinput\lplain.tex
copy \emtex\texinput\acmacros.sty
copy \emtex\texinput\lhyphen.tex
copy \emtex\texinput\hyconfig.tex hyphen.tex
copy \emtex\texinput\hyacceur.tex 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\dm-latex.doc 00_readme.doc
copy \emtex\texinput\dlatex.tex dlatexfr.tex
copy \emtex\texinput\language.efr language.dat
tex386 -i -8 -mt20000 -c850DCTEX.TCP dlatexfr \dump
if errorlevel 1 goto error
copy \emtex\texinput\dlatex.tex dlatexfg.tex
copy \emtex\texinput\language.efg language.dat
tex386 -i -8 -mt20000 -c850DCTEX.TCP dlatexfg\dump
if errorlevel 1 goto error
mkdir \emtex\dm-lafmt
del \emtex\dm-lafmt\*.t*
del \emtex\dm-lafmt\*.s*
del \emtex\dm-lafmt\*.d*
del \emtex\dm-lafmt\*.z*
del \emtex\dm-lafmt\*.m*
del \emtex\dm-lafmt\*.l*
del \emtex\dm-lafmt\*.b*
copy *.tex \emtex\dm-lafmt\*.*
copy *.sty \emtex\dm-lafmt\*.*
copy *.min \emtex\dm-lafmt\*.*
copy *.dat \emtex\dm-lafmt\*.*
copy *.log \emtex\dm-lafmt\*.*
copy *.doc \emtex\dm-lafmt\*.*
call dm-laput *.tex
call dm-laput *.sty
call dm-laput *.min
call dm-laput language.dat
call dm-laput *.doc
call dm-laput *.log
call dm-laput dm-lafmt.bat
call zip_p dm-lafmt emtex\dm-lafmt\*.*
call \taupin\tex\rsoput dm-lafmt.zip /b
goto done
:ex
echo delete hyphen.tex and restart dm-lafmt
goto end
:error
echo Error
:done
if exist hyphen.tex del hyphen.tex
:end