Browse Source

Added redo script

Getty Ritter 5 years ago
parent
commit
166aad2b06
1 changed files with 8 additions and 0 deletions
  1. 8 0
      default.pdf.do

+ 8 - 0
default.pdf.do

@@ -0,0 +1,8 @@
+#!/bin/bash -e
+
+echo $1 $2 $3
+TMPDIR="$(mktemp -d)"
+redo-ifchange "$1.tex"
+xelatex -output-directory="${TMPDIR}" "$1.tex"
+mv "${TMPDIR}/$1.pdf" "$3"
+rm -rf "${TMPDIR}"