if "%1"=="" goto :all
type %1 | sed -f tex8.sed >%1
goto :end

:all
mkdir tex8fmts
copy p:\emtex\texfmts\*.bat tex8fmts
for %%f in (tex8fmts\*.bat) do call %0 %%f
copy p:\emtex\texfmts\*.cmd tex8fmts
for %%f in (tex8fmts\*.cmd) do call %0 %%f
mkdir btex8fmt
copy p:\emtex\btexfmts\*.bat btex8fmt
for %%f in (btex8fmt\*.bat) do call %0 %%f
copy p:\emtex\btexfmts\*.cmd btex8fmt
for %%f in (btex8fmt\*.cmd) do call %0 %%f

:end
