cryptoparty/presentation.sh
2018-05-29 02:12:20 +02:00

9 lines
295 B
Bash
Executable file

#!/bin/sh
cd `dirname "$0"`
NAME=`basename "$0" .sh`
pdflatex "$NAME.tex" &&
(test -x "$NAME.nlo" && makeindex "$NAME.nlo" -s nomencl.ist -o "$NAME.nls" || true) &&
pdflatex "$NAME.tex" &&
pdflatex "$NAME.tex"
find . -name "$NAME*" ! \( -name '*tex' -or -name '*pdf' -or -name '*sh' \) -delete