]>
git.sthu.org Git - shutils.git/blob - git/pre-commit-texcheck
5 [ "$#" > "0" ] && cd "$1"
13 for f
in $
(find -name "*.tex"); do
14 # Only main tex files are interesting
15 grep -q "\documentclass" "$f" ||
continue
17 if ! pdflatex
-output-directory "$tmpdir" $f < /dev
/null
> /dev
/null
; then
18 echo >&2 "pdflatex failed on '$f'."