echo off
rem slifmt.cmd
if exist hyphen.tex goto ex
if exist lhyphen.tex goto ex
copy \emtex\texinput\hyphen.tex hyphen.tex
copy \emtex\texinput\lhyphen.tex lhyphen.tex
texp -i -8 splain \dump
if errorlevel 1 goto error
goto done

:ex
echo The following files should be removed or renamed before running slifmt:
if exist hyphen.tex echo hyphen.tex
if exist lhyphen.tex echo lhyphen.tex
goto end

:error
echo Error

:done
if exist hyphen.tex del hyphen.tex
if exist lhyphen.tex del lhyphen.tex
:end
