summaryrefslogtreecommitdiff
path: root/support/latexmk/extra-scripts/dvipdfm_call.bat
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/latexmk/extra-scripts/dvipdfm_call.bat
Initial commit
Diffstat (limited to 'support/latexmk/extra-scripts/dvipdfm_call.bat')
-rw-r--r--support/latexmk/extra-scripts/dvipdfm_call.bat19
1 files changed, 19 insertions, 0 deletions
diff --git a/support/latexmk/extra-scripts/dvipdfm_call.bat b/support/latexmk/extra-scripts/dvipdfm_call.bat
new file mode 100644
index 0000000000..104bbabe85
--- /dev/null
+++ b/support/latexmk/extra-scripts/dvipdfm_call.bat
@@ -0,0 +1,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 \ No newline at end of file