2013-07-20 08:19:12 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
2013-09-15 04:41:05 -05:00
|
|
|
fast_mode=false
|
|
|
|
|
|
|
|
set -- $(getopt fu "$@")
|
|
|
|
while [ $# -gt 0 ]; do
|
|
|
|
case "$1" in
|
|
|
|
-f)
|
|
|
|
fast_mode=true
|
|
|
|
;;
|
|
|
|
--)
|
|
|
|
shift
|
|
|
|
break
|
|
|
|
;;
|
|
|
|
-*)
|
|
|
|
echo "$0: error - unrecognized option $1" 1>&2
|
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
break
|
|
|
|
esac
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
|
2013-07-20 08:19:12 -05:00
|
|
|
PDFTEX_OPT="-shell-escape -halt-on-error"
|
|
|
|
|
2013-09-15 04:41:05 -05:00
|
|
|
if ! $fast_mode; then
|
2014-01-27 10:08:19 -06:00
|
|
|
md5sum *.aux *.snm *.nav *.toc > autoloop.old
|
2014-01-29 05:15:38 -06:00
|
|
|
make -C PRESENTATION_Intro
|
2014-02-02 10:57:14 -06:00
|
|
|
make -C PRESENTATION_ExSyn
|
2014-02-06 07:01:43 -06:00
|
|
|
make -C PRESENTATION_ExAdv
|
2014-06-22 05:50:29 -05:00
|
|
|
make -C PRESENTATION_ExOth
|
|
|
|
make -C PRESENTATION_Prog
|
2013-09-15 04:41:05 -05:00
|
|
|
fi
|
|
|
|
|
2013-07-20 08:19:12 -05:00
|
|
|
set -ex
|
|
|
|
|
2014-01-27 10:08:19 -06:00
|
|
|
pdflatex $PDFTEX_OPT presentation.tex
|
2013-07-20 08:19:12 -05:00
|
|
|
|
2013-09-15 04:41:05 -05:00
|
|
|
if ! $fast_mode; then
|
|
|
|
while
|
2014-01-27 10:08:19 -06:00
|
|
|
md5sum *.aux *.snm *.nav *.toc > autoloop.new
|
2013-09-15 04:41:05 -05:00
|
|
|
! cmp autoloop.old autoloop.new
|
|
|
|
do
|
|
|
|
cp autoloop.new autoloop.old
|
2014-01-27 10:08:19 -06:00
|
|
|
pdflatex $PDFTEX_OPT presentation.tex
|
2013-09-15 04:41:05 -05:00
|
|
|
done
|
|
|
|
|
|
|
|
rm -f autoloop.old
|
|
|
|
rm -f autoloop.new
|
|
|
|
fi
|
2013-07-20 08:19:12 -05:00
|
|
|
|