Date: Sat, 5 Jan 2002 23:38:40 +0000 (GMT) From: Joe Karthauser <joe@tao.org.uk> To: FreeBSD-gnats-submit@freebsd.org Subject: docs/33589: Patch to doc.docbook.mk to post process .tex files. Message-ID: <20020105233840.A5F2D2AE@tao.org.uk>
next in thread | raw e-mail | index | archive | help
>Number: 33589 >Category: docs >Synopsis: Patch to doc.docbook.mk to post process .tex files. >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-doc >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jan 05 15:40:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Joe Karthauser >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD genius.tao.org.uk 5.0-CURRENT FreeBSD 5.0-CURRENT #71: Wed Jan 2 19:47:25 GMT 2002 joe@genius.tao.org.uk:/usr/obj/usr/src/sys/GENIUS i386 >Description: Sometimes it's useful to be able to post process the tex file before a pdf or ps, etc, is made from it. This patch defines a new variable TEX_POSTPROCESS, in which you can define the name of a filter command that can be used to process the tex file if required. >How-To-Repeat: >Fix: Index: doc.docbook.mk =================================================================== RCS file: /home/ncvs/doc/share/mk/doc.docbook.mk,v retrieving revision 1.61 diff -u -r1.61 doc.docbook.mk --- doc.docbook.mk 2 Jan 2002 01:10:37 -0000 1.61 +++ doc.docbook.mk 5 Jan 2002 23:35:51 -0000 @@ -90,6 +90,10 @@ # a book. This option may be an order of magnitude more # CPU intensive than the default build. # +# TEX_POSTPROCESS If defined, then the command contained in this variable +# is evoked as a filter on the tex file produced +# giving the caller a chance to post-process the +# tex file before further use of it. # # Documents should use the += format to access these. @@ -408,6 +412,10 @@ ${DOC}.tex: ${SRCS} ${LOCAL_IMAGES_EPS} ${INDEX_SGML} ${PRINT_INDEX} ${JADE} -V tex-backend ${PRINTOPTS} \ ${JADEOPTS} -t tex -o ${.TARGET} ${MASTERDOC} +.if defined(TEX_POSTPROCESS) + ${TEX_POSTPROCESS} < ${DOC}.tex > ${DOC}.tmp + mv ${DOC}.tmp ${DOC}.tex +.endif ${DOC}.tex-ps: ${DOC}.tex ${LN} -f ${.ALLSRC} ${.TARGET} @@ -416,6 +424,10 @@ ${CP} -p ${PDFTEX_DEF} ${.TARGET} ${JADE} -V tex-backend ${PRINTOPTS} -ioutput.print.pdf \ ${JADEOPTS} -t tex -o /dev/stdout ${MASTERDOC} >> ${.TARGET} +.if defined(TEX_POSTPROCESS) + ${TEX_POSTPROCESS} < ${DOC}.tex-pdf > ${DOC}.tmp + mv ${DOC}.tmp ${DOC}.tex-pdf +.endif ${DOC}.dvi: ${DOC}.tex ${LOCAL_IMAGES_EPS} @${ECHO} "==> TeX pass 1/3" >Release-Note: >Audit-Trail: >Unformatted: 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?20020105233840.A5F2D2AE>