summaryrefslogtreecommitdiff
path: root/support/latexmk/extra-scripts/dvipdfmx_call
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/dvipdfmx_call
Initial commit
Diffstat (limited to 'support/latexmk/extra-scripts/dvipdfmx_call')
-rw-r--r--support/latexmk/extra-scripts/dvipdfmx_call14
1 files changed, 14 insertions, 0 deletions
diff --git a/support/latexmk/extra-scripts/dvipdfmx_call b/support/latexmk/extra-scripts/dvipdfmx_call
new file mode 100644
index 0000000000..9ff04c4bdc
--- /dev/null
+++ b/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