File: dvipdfm_call

package info (click to toggle)
latexmk 1%3A4.70b-0.2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,560 kB
  • sloc: perl: 5,785; csh: 164; sh: 114; makefile: 9
file content (14 lines) | stat: -rw-r--r-- 328 bytes parent folder | download | duplicates (10)
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