cvs: php-gtk-doc / distribute_html.php gen_manual.sh
| From: | Christian Weiske | Date: | Tue, 02 Aug 2005 16:41:04 +0000 |
| Subject: | cvs: php-gtk-doc / distribute_html.php gen_manual.sh | ||
| Groups: | php.gtk.doc | ||
| Request: | Send a blank email to php-gtk-doc+get-1504@lists.php.net to get a copy of this message | ||
cweiske Tue Aug 2 12:41:04 2005 EDT
Modified files:
/php-gtk-doc gen_manual.sh distribute_html.php
Log:
distribute_html fixes the <img src=""/> locations, and gen_manual.sh
copies the images to the right directory now
http://cvs.php.net/diff.php/php-gtk-doc/gen_manual.sh?r1=1.4&r2=1.5&ty=u
Index: php-gtk-doc/gen_manual.sh
diff -u php-gtk-doc/gen_manual.sh:1.4 php-gtk-doc/gen_manual.sh:1.5
--- php-gtk-doc/gen_manual.sh:1.4 Tue Aug 2 06:48:32 2005
+++ php-gtk-doc/gen_manual.sh Tue Aug 2 12:41:02 2005
@@ -77,7 +77,7 @@
# without losing directory structure?
#cp --target-directory=build/en/test/images/
grep -oh 'src="[^"]*"'
build/en/test/* | sed s/src=\"//g | sed s/\"//g
# this one doesn't keep the directories
-cp -R images build/en/test/
+cp -R images build/en/$type/
if [ $type == "html" ] && [ $test == "0" ]; then
$php -q distribute_html.php $language
http://cvs.php.net/diff.php/php-gtk-doc/distribute_html.php?r1=1.2&r2=1.3&ty=u
Index: php-gtk-doc/distribute_html.php
diff -u php-gtk-doc/distribute_html.php:1.2 php-gtk-doc/distribute_html.php:1.3
--- php-gtk-doc/distribute_html.php:1.2 Fri Apr 22 13:41:00 2005
+++ php-gtk-doc/distribute_html.php Tue Aug 2 12:41:02 2005
@@ -52,8 +52,8 @@
//prefixed directories
foreach ($prefixes as $prefix) {
$basefiles = glob($prefix . '/*.html');
- $searches = array('%href="%');
- $replacements = array('href="../');
+ $searches = array('%href="%' ,'%src="%');
+ $replacements = array('href="../' ,'src="../');
foreach ($prefixes as $prefix2) {
if ($prefix2 != $prefix) {
$searches[] = '%href="../' . $prefix2 . '\\.%';