On 8/13/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote:
> >> periodically if what I wrote looks good. Building a manual takes serious
> >> amount of time, so I wanted to ask - is there any way to build only one
> >> chapter for the manual and look only into it, without building all the 
> >> rest?
> >
> > make part/the-id
> >
> > Take for example the strpos function, which has the id function.strpos:
> > make part/function.strpos
>
> Tried that, however it still seems to do the "Generating the manual..."
> step each time, which takes significant time (not as much as full
> manual, but an hour at least). Is there any way to speed that up?

An hour!? Are you using couple of hamsters? :P
It should take a minute, max. Takes^WTook 30seconds on my laptop.
You are probably running outdated libxml2, try upgrading it.

You could try running xsltproc --stringparam rootid function.strpos
phpbook/phpbook-xsl/phpweb.xsl manual.xml
(replacing 'function.strpos' with the ID you want to build, and
'phpweb.xsl' with 'html.xsl' if you want the html output).
However, this won't work on any BSD box (FreeBSD, MacOSX...) due to
some severe memory allocation bugs in libxml2 which I still haven't
managed to track down (and are BSD specific somehow).


Your best bet is upgrading libxml2+libxslt but if your hardware is
from the stone age then your hardware is from the stone age... :)

However. As I said earlier, we know the build system *sucks*. We are
working on it and have already made maaaassive improvements to it
(http://docs.php.net/manual/en/index.php and
http://docs.php.net/download-docs.php (english) was for example
generated in less than 3minutes...) :]

-Hannes

Reply via email to