From owner-freebsd-doc Mon Apr 9 1:52:16 2001 Delivered-To: freebsd-doc@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id 3D6C937B422; Mon, 9 Apr 2001 01:52:13 -0700 (PDT) (envelope-from murray@meow.osd.bsdi.com) Received: (from murray@localhost) by meow.osd.bsdi.com (8.11.2/8.11.2) id f398pBL06690; Mon, 9 Apr 2001 01:51:11 -0700 (PDT) (envelope-from murray) Date: Mon, 9 Apr 2001 01:51:11 -0700 From: Murray Stokely To: Nik Clayton Cc: freebsd-doc@FreeBSD.ORG Subject: Re: Indexing the Handbook Message-ID: <20010409015111.B6398@meow.osd.bsdi.com> References: <20010223144043.A46865@canyon.nothing-going-on.org> <20010404103259.C45781@canyon.nothing-going-on.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010404103259.C45781@canyon.nothing-going-on.org>; from nik@FreeBSD.ORG on Wed, Apr 04, 2001 at 10:32:59AM +0100 X-GPG-Key-ID: 1024D/0E451F7D X-GPG-Key-Fingerprint: E2CA 411D DD44 53FD BB4B 3CB5 B4D7 10A2 0E45 1F7D Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Wed, Apr 04, 2001 at 10:32:59AM +0100, Nik Clayton wrote: > Looking through doc.docbook.mk, I think there's a bug with GEN_INDEX, > and the html and html-split formats (I think there's a possibility for > it to use the FORMATS=html index.sgml when, in fact, > FORMATS=html-split. > > I'll try and test that out and fix it if it is a problem. This is how I fixed the problem on my local tree. I simply create an index.sgml file with 'touch' to solve the chicken and egg problem so that jade doesn't bomb out in the first pass, and then I add the -f option to collateindex.pl to clobber this blank file. Did you have a more elegant solution, or do you mind if I commit this? - Murray Unmangled version at : http://people.freebsd.org/~murray/patches/doc.docbook.mk.diff RCS file: /home/ncvs/doc/share/mk/doc.docbook.mk,v retrieving revision 1.31 diff -u -r1.31 doc.docbook.mk --- doc.docbook.mk 2001/03/27 16:15:07 1.31 +++ doc.docbook.mk 2001/04/09 08:44:20 @@ -197,8 +197,9 @@ index.html HTML.manifest: ${SRCS} ${LOCAL_IMAGES_LIB} ${IMAGES_PNG} .if defined(GEN_INDEX) + touch index.sgml ${JADE} -V html-index -ioutput.html -ioutput.html.images ${JADEOPTS} -d ${DSLHTML} -t sgml ${MASTERDOC} - perl ${PREFIX}/share/sgml/docbook/dsssl/modular/bin/collateindex.pl -o index.sgml HTML.index + perl ${PREFIX}/share/sgml/docbook/dsssl/modular/bin/collateindex.pl -f -o index.sgml HTML.index .endif ${JADE} -V html-manifest -ioutput.html -ioutput.html.images ${JADEOPTS} -d ${DSLHTML} -t sgml ${MASTERDOC} .if !defined(NO_TIDY) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message