@@ -0,0 +1,5 @@
+#!/bin/bash -e
+
+DEPS="core-playbooks.pdf extended-playbooks.pdf inverse-playbooks.pdf travelrules.pdf"
+redo-ifchange $DEPS
+pdfunite $DEPS $3
@@ -0,0 +1,4 @@
+rm -f *.pdf
+exit 1
+CORE_PLAYBOOKS="bard.pdf cleric.pdf druid.pdf fighter.pdf paladin.pdf ranger.pdf thief.pdf wizard.pdf"
+redo-ifchange $CORE_PLAYBOOKS
+pdfunite $CORE_PLAYBOOKS $3
@@ -1,8 +1,7 @@
#!/bin/bash -e
-echo $1 $2 $3
-TMPDIR="$(mktemp -d)"
redo-ifchange "$1.tex"
+TMPDIR="$(mktemp -d)"
xelatex -output-directory="${TMPDIR}" "$1.tex"
mv "${TMPDIR}/$1.pdf" "$3"
rm -rf "${TMPDIR}"
+EXTENDED_PLAYBOOKS="mage.pdf priest.pdf artificer.pdf witch.pdf"
+redo-ifchange $EXTENDED_PLAYBOOKS
+pdfunite $EXTENDED_PLAYBOOKS $3
+INVERSE_PLAYBOOKS="collector.pdf lanternbearer.pdf survivor.pdf"
+redo-ifchange $INVERSE_PLAYBOOKS
+pdfunite $INVERSE_PLAYBOOKS $3