Re: Copying images from checkout to phd output locations.

From: Date: Mon, 26 Jan 2009 19:55:22 +0000
Subject: Re: Copying images from checkout to phd output locations.
References: 1 2 3  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969380084@lists.php.net to get a copy of this message
On Mon, Jan 26, 2009 at 16:18, Richard Quadling <rquadling@googlemail.com> wrote: > 2009/1/26 Christian Weiske <cweiske@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

« previous php.doc (#969380084) next »