1 # Backend to convert something into DVI
2 # Send any comments to Eric Bischoff <eric@caldera.de>
3 # This program is under GPL license. See LICENSE file for details.
5 TEXINPUTS="$(dirname "${SGML_FILE}"):${TEXINPUTS}"
9 $SGML_JADE -t tex -o ${SGML_FILE_NAME}.tex $SGML_ARGUMENTS
14 # Convert from TeX to DVI
15 jadetex ${SGML_FILE_NAME}.tex >${SGML_FILE_NAME}.tmp
18 cat ${SGML_FILE_NAME}.tmp
19 rm ${SGML_FILE_NAME}.tmp
20 rm ${SGML_FILE_NAME}.tex
23 rm ${SGML_FILE_NAME}.tmp
25 # If there are unresolved references, re-run jadetex, twice
26 if egrep '^LaTeX Warning: There were undefined references.$' ${SGML_FILE_NAME}.log >/dev/null 2>&1
28 jadetex ${SGML_FILE_NAME}.tex >/dev/null
29 jadetex ${SGML_FILE_NAME}.tex >/dev/null
31 rm ${SGML_FILE_NAME}.log
32 rm ${SGML_FILE_NAME}.aux
33 rm ${SGML_FILE_NAME}.tex
34 rm ${SGML_FILE_NAME}.out