summaryrefslogtreecommitdiff
path: root/support/latexmk/extra-scripts/dvipdfm_call
blob: 896dce71fc6f3587b17722852aebbb88db55f27a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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