summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/support/latexmk/extra-scripts/dvipdfmx_call
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/support/latexmk/extra-scripts/dvipdfmx_call')
-rw-r--r--Master/texmf-dist/doc/support/latexmk/extra-scripts/dvipdfmx_call14
1 files changed, 14 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/support/latexmk/extra-scripts/dvipdfmx_call b/Master/texmf-dist/doc/support/latexmk/extra-scripts/dvipdfmx_call
new file mode 100644
index 00000000000..9ff04c4bdc2
--- /dev/null
+++ b/Master/texmf-dist/doc/support/latexmk/extra-scripts/dvipdfmx_call
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+# Run dvipdfmx from dvipdf-style command-line
+# Assume no options specified
+# If this script is called from latexmk,
+# we have $1=source.dvi, $2=dest.pdf
+# But for safety, let's handle correctly a one argument call,
+# i.e., $1=source, with no $2
+
+if [ "$2" = "" ]; then
+ dvipdfmx $1
+else
+ dvipdfmx -o $2 $1
+fi