default.pdf.do 168 B

12345678
  1. #!/bin/bash -e
  2. echo $1 $2 $3
  3. TMPDIR="$(mktemp -d)"
  4. redo-ifchange "$1.tex"
  5. xelatex -output-directory="${TMPDIR}" "$1.tex"
  6. mv "${TMPDIR}/$1.pdf" "$3"
  7. rm -rf "${TMPDIR}"