On Mon, Jan 26, 2009 at 16:18, Richard Quadling
<rquadl...@googlemail.com> wrote:
> 2009/1/26 Christian Weiske <cwei...@cweiske.de>:
>> Hello Richard,
>>
>>> Is anyone interested in a script that will copy and rename the images
>>> from the phpdoc checkout to the phd output folders (chm/res/figures,
>>> php/figures, html/figures, etc.)?
>>> Or is there one that already does this?
>>
>> Since we need images in peardoc, I planned to do that in the process.
>>
>> --
>> Regards/Mit freundlichen Grüßen
>> Christian Weiske
>>
>
> From what I understand, this has to be done outside of the phd build
> process as phd only works on .manual.xml / giant.xml and not on the
> separate xml files.
>
> As far as I can tell, phd cannot determine where the source XML files
> are, and so cannot find any image files associated with the xml files.

Correct.
On the rsync box and docs.php.net we use:
        @mkdir php/figures
        @for i in `find /local/cvs/phpdoc-all/$(@F)/ -type d -name figures`;
do sect=`echo $$i | awk -F\/ '{print $$7}'`; echo $$sect; for file in
$$i/*; do if test -f $$file; then name=`basename $$file`; cp $$file
php/figures/$$sect.$$name; fi; done; done;

A better alternative would be greatly appreciated.

-Hannes

Reply via email to