Date: Sun, 14 Nov 1999 22:55:38 +0000 From: Nik Clayton <nik@freebsd.org> To: docs@freebsd.org Subject: Recursing TeX to the right level, automatically Message-ID: <19991114225538.E21117@catkin.nothing-going-on.org>
next in thread | raw e-mail | index | archive | help
--mYCpIKhGyMATD0i+ Content-Type: text/plain; charset=us-ascii Hi guys, [ OhMyGod, what the hell happened to my Sunday? ] Attached is a diff to share/mk/doc.docbook.mk, which runs TeX until the ${DOC}.aux file is the same as it was on the last two runs. The idea is that this is a better method than our current "Run it three times and hope that's got everything" approach. It's survived a complete run through of % cd en_US.ISO_8859-1 % make FORMATS=ps so I think it's safe to commit. Comments from TeX and/or make(1) wizards would be appreciated. N -- If you want to imagine the future, imagine a tennis shoe stamping on a penguin's face forever. --- with apologies to George Orwell --mYCpIKhGyMATD0i+ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=diff Index: doc.docbook.mk =================================================================== RCS file: /home/ncvs/doc/share/mk/doc.docbook.mk,v retrieving revision 1.3 diff -u -r1.3 doc.docbook.mk --- doc.docbook.mk 1999/11/01 19:41:02 1.3 +++ doc.docbook.mk 1999/11/14 22:17:45 @@ -185,12 +185,17 @@ ${JADE} -Vtex-backend -ioutput.print ${JADEOPTS} -d ${DSLPRINT} -t tex -o ${.TARGET} ${MASTERDOC} ${DOC}.dvi: ${DOC}.tex - @echo "==> TeX pass 1/3" - -tex "&jadetex" ${.ALLSRC} - @echo "==> TeX pass 2/3" - -tex "&jadetex" ${.ALLSRC} - @echo "==> TeX pass 3/3" - -tex "&jadetex" ${.ALLSRC} + if [ ! -f ${DOC}-p.aux ] ; then \ + echo place-holder > ${DOC}-p.aux; \ + fi + -cp -pf ${DOC}-p.aux ${DOC}-pp.aux + -cp -pf ${DOC}.aux ${DOC}-p.aux + -tex "&jadetex" ${DOC}.tex + if [ ! -z "`cmp ${DOC}.aux ${DOC}-p.aux`" -o ! -z "`cmp ${DOC}.aux ${DOC}-pp.aux`" ]; then \ + rm ${.TARGET}; \ + ${MAKE} ${.TARGET}; \ + fi + -rm ${DOC}-p.aux ${DOC}-pp.aux ${DOC}.pdf: ${DOC}.tex @echo "==> PDFTeX pass 1/3" --mYCpIKhGyMATD0i+-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991114225538.E21117>