summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/support/latexmk/extra-scripts/dvipdfm_call.bat
blob: a0817015fe627b4ae5e5778ddd3e82826574e0dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@echo off
REM Run dvipdfm from dvipdf-style command-line
REM Assume no options specified
REM If this script is called from latexmk,
REM    we have %1=source.dvi, %2=dest.pdf
REM But for safety, let's handle correctly a one argument call,
REM    i.e., %1=source, with no %2

if "%2" == "" goto onearg

:twoarg
dvipdfm -o %2 %1
goto done

:onearg
dvipdfm %1


:done