summaryrefslogtreecommitdiff
path: root/macros/generic/cptex/btex8fmt/gfmt.bat
blob: a12ae129263a535f54b91eb731895a2a76ac7ef2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
echo off
rem gfmt.bat
if exist hyphen.tex goto ex
if exist plaing.tex goto ex
if exist lplaing.tex goto ex
copy \emtex\texinput\plain.tex plaing.tex
copy \emtex\texinput\ghyphen.max hyphen.tex
btex -i -8 -o -r -mt12000 \language1\input plaing \dump
if errorlevel 1 goto error
copy \emtex\texinput\lplain.tex lplaing.tex
btex -i -8 -o -r -mt12000 \language1\input lplaing \input 3 \dump
if errorlevel 1 goto error
goto done

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

:error
echo Error

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