cvs: peardoc /scripts pearwebbuild.php
| From: | Christian Weiske | Date: | Fri, 02 Jan 2009 14:24:15 +0000 |
| Subject: | cvs: peardoc /scripts pearwebbuild.php | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-11414@lists.php.net to get a copy of this message | ||
cweiske Fri Jan 2 14:24:15 2009 UTC
Modified files:
/peardoc/scripts pearwebbuild.php
Log:
generate tocs only after phd has been run at least once - we have no index
otherwise
http://cvs.php.net/viewvc.cgi/peardoc/scripts/pearwebbuild.php?r1=1.12&r2=1.13&diff_format=u
Index: peardoc/scripts/pearwebbuild.php
diff -u peardoc/scripts/pearwebbuild.php:1.12 peardoc/scripts/pearwebbuild.php:1.13
--- peardoc/scripts/pearwebbuild.php:1.12 Fri Jan 2 14:07:15 2009
+++ peardoc/scripts/pearwebbuild.php Fri Jan 2 14:24:15 2009
@@ -22,7 +22,7 @@
require_once 'Console/CommandLine.php';
$parser = new Console_CommandLine();
$parser->description = 'Builds the full manual';
-$parser->version = '$Id: pearwebbuild.php,v 1.12 2009/01/02 14:07:15 cweiske Exp $';
+$parser->version = '$Id: pearwebbuild.php,v 1.13 2009/01/02 14:24:15 cweiske Exp $';
$parser->addOption('updatecvs', array(
'long_name' => '--updatecvs',
'description' => 'Update peardoc from CVS',
@@ -84,11 +84,6 @@
exec("$php_executable configure.php --no-display-untranslated --lang=$lang", $output,
$return);
if ($return == 0) {
- if ($lang == 'en') {
- logAndEcho("Building pearweb package tocs");
- shell_exec("$php_executable scripts/pearwebpackagetocs.php" . $tobuildlog);
- }
-
logAndEcho("Now running phd for $lang");
//bightml
@@ -131,6 +126,14 @@
//pearweb
shell_exec("$phd_executable -f xhtml -t pearweb -o build/$lang -d giant.xml" .
$tobuildlog);
+
+ //pearweb package tocs
+ if ($lang == 'en') {
+ logAndEcho("Building pearweb package tocs");
+ shell_exec("$php_executable scripts/pearwebpackagetocs.php" . $tobuildlog);
+ }
+
+
if ($cmdline->options['phpdir']) {
//copy pearweb build to directory
$phplangdir = $cmdline->options['phpdir'] . '/' . $lang;