Boost logo

Boost :

Subject: Re: [boost] RFC: Automatic indexing of quickbook/boostbook/docbook docs.
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-11-28 13:55:54


AMDG

John Maddock wrote:
> Some rather basic documentation for the tool itself is here:
> http://svn.boost.org/svn/boost/sandbox/tools/auto_index/doc/html/index.html
> note that currently there is no Boost.Build integration - I really
> need some help with that - so the tool is much harder to use than it
> should be.

I've worked out how to insert an extra tool in the
middle of the boostbook toolchain. See attached.

In Christ,
Steven Watanabe


import feature ;
import generators ;
import "class" ;

feature.feature modify-docbook : off "on" ;

class modify-docbook-generator : generator
{
    rule run ( project name ? : property-set : sources * )
    {
        if [ $(property-set).get <modify-docbook> ] = "on"
        {
            return [ generator.run $(project) $(name) : $(property-set) : $(sources) ] ;
        }
    }
}

generators.register [ class.new modify-docbook-generator modified-docbook.modify-docbook : DOCBOOK : DOCBOOK(%.modified) ] ;
generators.override modified-docbook.modify-docbook : boostbook.boostbook-to-docbook ;

actions modify-docbook
{
    copy $(>) $(<)
}


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk