summaryrefslogtreecommitdiff
path: root/graphics/MF-PS/progs/m2e-alt.bat
blob: c96c568f8893632e216f322727a9e4ff393bfa38 (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
30
::
:: This file belongs to the MFTOEPS package.
::
@echo off
::
:: %1 is a file name WITHOUT extension
::
:: This batch is an alternative to M2E.BAT using TeX rather than AWK
::
:: Software used (change if required):
::   MF386.EXE
::   TEX.BAT (TEX.BAT calls TeX, because calling TeX may be
::            configuration-dependent; see sample TEX.BAT)
::   GFTODVI.EXE
::
 mf386 &plain \yeseps:=1; input %1
 if errorlevel==1 goto EMERG
 call tex.bat \def\inputname{%1.log}\input spliteps.tex
 if exist %1.300 goto NOPSMODE
 goto CLEANUP
:NOPSMODE
:: `no_export_level' was used for some reason (error?)...
 gftodvi %1.300
 if exist %1.300 del %1.300
 if exist %1.tfm del %1.tfm
 if exist %1.eps del %1.eps
:CLEANUP
 if exist spliteps.log del spliteps.log
:: del %1.log
:EMERG