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