Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- while [ $# -gt 0 ]; do
- texfile=$1
- name=$(basename $texfile .tex)
- for i in $(seq 1 3); do
- pdflatex -interaction batchmode $texfile
- if ! [ $? -eq 0 ]; then
- echo "Build failed. See $name.log"
- exit 1
- fi
- done
- rm $name.aux $name.log $name.toc
- shift
- done
Add Comment
Please, Sign In to add comment