Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 4B8ED9FA1A1; Thu, 14 Dec 2006 21:22:11 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-new, port 10024) with ESMTP id 65595-05; Thu, 14 Dec 2006 21:22:06 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from momjian.us (momjian.us [70.90.9.53]) by postgresql.org (Postfix) with ESMTP id B78CC9FA0B7; Thu, 14 Dec 2006 21:22:05 -0400 (AST) Received: (from bruce@localhost) by momjian.us (8.11.6/8.11.6) id kBF1M3Y07057; Thu, 14 Dec 2006 20:22:03 -0500 (EST) From: Bruce Momjian Message-Id: <200612150122.kBF1M3Y07057@momjian.us> Subject: Re: [DOCS] 8.2.0 pdf In-Reply-To: <18994.1165687060@sss.pgh.pa.us> To: Tom Lane Date: Thu, 14 Dec 2006 20:22:03 -0500 (EST) CC: Peter Eisentraut , pgsql-www@postgresql.org, Jim Nasby , Devrim GUNDUZ , Oleg Bartunov , "pgsql-docs@postgresql.org" , PostgreSQL-patches X-Mailer: ELM [version 2.4ME+ PL123] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="ELM1166145723-16267-0_" Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/92 X-Sequence-Number: 11206 --ELM1166145723-16267-0_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="US-ASCII" Tom Lane wrote: > Peter Eisentraut writes: > > Jim Nasby wrote: > >> Also, if PDF indexes depend on HTML, perhaps HTML should be a > >> dependency of PDF in the Makefile. > > > By that logic, HTML should also depend on HTML. I don't know how people > > would like that. > > The real point is that the "jade" step needs to be done twice to have > up-to-date indexes. It makes sense not to force that for html, because > we use html for proofing. But perhaps we ought to run jade twice in the > Makefile rule for producing pdftex output? I see that the Makefile > forces three runs of TeX for similar reasons (which is probably way more > time than the jade part anyway). I have modified the sgml Makefile to run jade twice for PDF and PS output; patch attached and applied to HEAD and 8.2.X. -- Bruce Momjian bruce@momjian.us EnterpriseDB http://www.enterprisedb.com + If your life is a hard drive, Christ can be your backup. + --ELM1166145723-16267-0_ Content-Transfer-Encoding: 7bit Content-Type: text/x-diff Content-Disposition: inline; filename="/rtmp/diff" Index: doc/src/sgml/Makefile =================================================================== RCS file: /cvsroot/pgsql/doc/src/sgml/Makefile,v retrieving revision 1.84 diff -c -c -r1.84 Makefile *** doc/src/sgml/Makefile 10 Dec 2006 20:46:03 -0000 1.84 --- doc/src/sgml/Makefile 15 Dec 2006 00:18:52 -0000 *************** *** 137,155 **** --- 137,164 ---- JADE.tex.call = $(JADE) $(JADEFLAGS) $(SGMLINCLUDE) $(CATALOG) -d $(srcdir)/stylesheet.dsl -t tex -V tex-backend -i output-print %-A4.tex-ps: %.sgml $(ALLSGML) stylesheet.dsl + # multiple runs are necessary to create proper index entries + $(JADE.tex.call) -V texdvi-output -V '%paper-type%'=A4 -o $@ $< $(JADE.tex.call) -V texdvi-output -V '%paper-type%'=A4 -o $@ $< %-US.tex-ps: %.sgml $(ALLSGML) stylesheet.dsl + # multiple runs are necessary to create proper index entries + $(JADE.tex.call) -V texdvi-output -V '%paper-type%'=USletter -o $@ $< $(JADE.tex.call) -V texdvi-output -V '%paper-type%'=USletter -o $@ $< %-A4.tex-pdf: %.sgml $(ALLSGML) stylesheet.dsl + # multiple runs are necessary to create proper index entries + $(JADE.tex.call) -V texpdf-output -V '%paper-type%'=A4 -o $@ $< $(JADE.tex.call) -V texpdf-output -V '%paper-type%'=A4 -o $@ $< %-US.tex-pdf: %.sgml $(ALLSGML) stylesheet.dsl + # multiple runs are necessary to create proper index entries + $(JADE.tex.call) -V texpdf-output -V '%paper-type%'=USletter -o $@ $< $(JADE.tex.call) -V texpdf-output -V '%paper-type%'=USletter -o $@ $< %.dvi: %.tex-ps @rm -f $*.aux $*.log + # multiple runs are necessary to create proper index entries jadetex $< jadetex $< jadetex $< *************** *** 160,165 **** --- 169,175 ---- %.pdf: %.tex-pdf @rm -f $*.aux $*.log $*.out + # multiple runs are necessary to create proper index entries pdfjadetex $< pdfjadetex $< pdfjadetex $< --ELM1166145723-16267-0_--