Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Copying images from checkout to phd output locations.

0 views
Skip to first unread message

Richard Quadling

unread,
Jan 26, 2009, 8:28:53 AM1/26/09
to PHPdoc List
Hi.

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?

Regards,

Richard.

--
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"

Christian Weiske

unread,
Jan 26, 2009, 8:43:51 AM1/26/09
to php...@lists.php.net, RQua...@googlemail.com
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

Richard Quadling

unread,
Jan 26, 2009, 10:18:52 AM1/26/09
to Christian Weiske, php...@lists.php.net
2009/1/26 Christian Weiske <cwe...@cweiske.de>:

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.

Hannes Magnusson

unread,
Jan 26, 2009, 2:55:22 PM1/26/09
to RQua...@googlemail.com, Christian Weiske, php...@lists.php.net
On Mon, Jan 26, 2009 at 16:18, Richard Quadling
<rqua...@googlemail.com> wrote:
> 2009/1/26 Christian Weiske <cwe...@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

Richard Quadling

unread,
Jan 27, 2009, 8:58:05 AM1/27/09
to Hannes Magnusson, Christian Weiske, php...@lists.php.net
2009/1/26 Hannes Magnusson <hannes.m...@gmail.com>:

I've added phd/ext/raq/copyfigs.php (in the 0.4 branch).

0 new messages