echo off
echo fmt.bat for 2 and 3 languages
del nfss*.fmt
del *.bak
del *.log
del *.tex
del *.sty
del *.ch
del *.min
del *.doc

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\dclfontm.sty xxxlfont.sty 
copy \emtex\texinput\latex.tex
copy \emtex\texinput\acmacros.sty
copy \emtex\texinput\dc-nfss.tex 
copy \emtex\texinput\dc-nfss.doc 00_readme.doc
    tex386 -i -8 -mt20000 -c850DCTEX.TCP dc-nfss \dump

mkdir \emtex\dc-nfss 
del \emtex\dc-nfss\*.t*
del \emtex\dc-nfss\*.s*
del \emtex\dc-nfss\*.d*
del \emtex\dc-nfss\*.z*
del \emtex\dc-nfss\*.m*
del \emtex\dc-nfss\*.l*
del \emtex\dc-nfss\*.b*

copy *.tex \emtex\dc-nfss\*.*
copy *.sty \emtex\dc-nfss\*.*
copy *.min \emtex\dc-nfss\*.*
copy *.dat \emtex\dc-nfss\*.*
copy *.dc \emtex\dc-nfss\*.*
copy *.log \emtex\dc-nfss\*.*
copy *.doc \emtex\dc-nfss\*.*

call dc-nfput *.tex 
call dc-nfput *.sty 
call dc-nfput *.min 
call dc-nfput language.dat 
call dc-nfput *.dc 
call dc-nfput *.doc 
call dc-nfput *.log 
call dc-nfput dc-nfss.bat 

call zip_p dc-nfss emtex\dc-nfss\*.*
call \taupin\tex\rsoput dc-nfss.zip /b

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
