summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/metapost/dviincl/testit.bat
blob: 69371474a410af08c711522b6f1fef1ee4f40de4 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
@echo off

:: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
:: PREPARE:
:: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::

:: setting the environment variable texfonts is needed by dvitomp:

:: mp by Piet van Oostrum and emTeX
:: set texfonts=c:/emtex/tfms!
:: set tex_call=call tex &plain \input
:: set mp_call=mp &plain
:: set dvitomp_call=c:\emtex\mp\mplib\dvitomp

:: fpTeX, MiKTeX, DJ Delorie
set mp_call=mpost &mpost 
set dvitomp_call=dvitomp

:: COMMON
set tex_call=call tex \input
set dvips_call=dvips -F -K
:: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
:: DO JOB:
:: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::

%tex_call% storyx
%dvitomp_call% storyx.dvi storyx.mpx
:: it is advisable to avoid quotes -- hence the `str' operation:
%mp_call% \vardef ifi = str storyx.mpx enddef; vardef ofi = str storyx.mpy enddef; input fix_brks.mp
%mp_call% test-bop.mp
%tex_call% test-bop.tex
%dvips_call% test-bop.dvi

:: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::
:: CLEAN:
:: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: :: ::

del storyx.dvi
del storyx.log
:: del storyx.mpx
:: del storyx.mpy
del test-bop.dvi
del test-bop.log
del test-bop.10*