diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/latexmk/extra-scripts/dvipdfm_call |
Initial commit
Diffstat (limited to 'support/latexmk/extra-scripts/dvipdfm_call')
-rw-r--r-- | support/latexmk/extra-scripts/dvipdfm_call | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/support/latexmk/extra-scripts/dvipdfm_call b/support/latexmk/extra-scripts/dvipdfm_call new file mode 100644 index 0000000000..896dce71fc --- /dev/null +++ b/support/latexmk/extra-scripts/dvipdfm_call @@ -0,0 +1,14 @@ +#!/bin/sh + +# Run dvipdfm 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 + dvipdfm $1 +else + dvipdfm -o $2 $1 +fi |