#!/bin/bash xelatex --shell-escape hymex.tex if [ $? -ne 0 ]; then echo "ABORT";exit;else echo "OK";fi gs -dNOPAUSE -q -sDEVICE=pdfwrite -dBATCH -sOutputFile=hymexc.pdf *.font.ps hymex.pdf if [ $? -ne 0 ]; then echo "ABORT";exit;else echo "OK";fi rm -f tmplily* hymex.log hymex.aux