cvs: docweb /scripts gen_picture_info.php gen_picture_info_all_lang.php generation.sh rev.php

From: Date: Thu, 05 Aug 2004 14:30:56 +0000
Subject: cvs: docweb /scripts gen_picture_info.php gen_picture_info_all_lang.php generation.sh rev.php
Groups: php.doc.web 
Request: Send a blank email to doc-web+get-130@lists.php.net to get a copy of this message
vincent Thu Aug 5 10:30:56 2004 EDT Modified files: /docweb/scripts gen_picture_info.php gen_picture_info_all_lang.php generation.sh rev.php Log: path fixes Also, the function documentation_exists could not be found by php or grep I've made a dirty fix for that, could it be that this function is still at keliglia? http://cvs.php.net/diff.php/docweb/scripts/gen_picture_info.php?r1=1.1&r2=1.2&ty=u Index: docweb/scripts/gen_picture_info.php diff -u docweb/scripts/gen_picture_info.php:1.1 docweb/scripts/gen_picture_info.php:1.2 --- docweb/scripts/gen_picture_info.php:1.1 Wed Aug 4 13:14:55 2004 +++ docweb/scripts/gen_picture_info.php Thu Aug 5 10:30:56 2004 @@ -1,16 +1,16 @@ <?php -include '/home/user/doc/include/jpgraph/jpgraph.php'; -include '/home/user/doc/include/jpgraph/jpgraph_pie.php'; -include '/home/user/doc/include/jpgraph/jpgraph_pie3d.php'; +include '../include/jpgraph/jpgraph.php'; +include '../include/jpgraph/jpgraph_pie.php'; +include '../include/jpgraph/jpgraph_pie3d.php'; -include '/home/user/doc/include/lib_general.inc.php'; -include '/home/user/doc/include/lib_revcheck.inc.php'; +include '../include/lib_general.inc.php'; +include '../include/lib_revcheck.inc.php'; $plop = array_shift($argv); $TYPE = array_shift($argv); // Type of documentation - +/** make this work for now // documentation exist ? if (!documentation_exists($TYPE)) { @@ -18,7 +18,7 @@ exit(0); } - +*/ foreach( $argv as $lang ) { @@ -105,7 +105,7 @@ $p1->SetLegends($legend); $graph->Add($p1); -$graph->Stroke('/home/user/doc/www/images/info_revcheck_' . $TYPE . '_' . $lang . '.png'); +$graph->Stroke('../www/images/info_revcheck_' . $TYPE . '_' . $lang . '.png'); return TRUE; http://cvs.php.net/diff.php/docweb/scripts/gen_picture_info_all_lang.php?r1=1.1&r2=1.2&ty=u Index: docweb/scripts/gen_picture_info_all_lang.php diff -u docweb/scripts/gen_picture_info_all_lang.php:1.1 docweb/scripts/gen_picture_info_all_lang.php:1.2 --- docweb/scripts/gen_picture_info_all_lang.php:1.1 Wed Aug 4 13:14:55 2004 +++ docweb/scripts/gen_picture_info_all_lang.php Thu Aug 5 10:30:56 2004 @@ -1,9 +1,9 @@ <?php -include '/home/user/doc/include/jpgraph/jpgraph.php'; -include '/home/user/doc/include/jpgraph/jpgraph_bar.php'; +include '../include/jpgraph/jpgraph.php'; +include '../include/jpgraph/jpgraph_bar.php'; -include '/home/user/doc/include/lib_general.inc.php'; -include '/home/user/doc/include/lib_revcheck.inc.php'; +include '../include/lib_general.inc.php'; +include '../include/lib_revcheck.inc.php'; // Couleurs des barres, suivant le type de la doc @@ -19,7 +19,7 @@ -foreach($TYPES as $type => $pos) { +foreach($type_col_bar as $type => $pos) { if( is_file(SQLITE_DIR . 'rev.' . $type . '.sqlite') && filesize(SQLITE_DIR . 'rev.' . $type . '.sqlite') != 0 ) { @@ -111,7 +111,7 @@ $graph->xaxis->title->SetFont(FF_FONT1,FS_BOLD); // Display the graph -$graph->Stroke('/home/user/doc/www/images/info_revcheck_' . $TYPE . '_all_lang.png'); +$graph->Stroke('../www/images/info_revcheck_' . $TYPE . '_all_lang.png'); } http://cvs.php.net/diff.php/docweb/scripts/generation.sh?r1=1.1&r2=1.2&ty=u Index: docweb/scripts/generation.sh diff -u docweb/scripts/generation.sh:1.1 docweb/scripts/generation.sh:1.2 --- docweb/scripts/generation.sh:1.1 Wed Aug 4 13:14:55 2004 +++ docweb/scripts/generation.sh Thu Aug 5 10:30:56 2004 @@ -1,53 +1,56 @@ #!/bin/sh #cvs up -Pd de phpdoc-all -cd /home/user/doc/cvs/phpdoc-all +cd ../cvs/phpdoc-all echo "Update cvs..." cvs up -Pd echo "...terminé." echo "Génération des bases Sql" +# cd back again +cd ../scripts + # On commence par Php echo "Génération du revcheck PHP" -/usr/bin/php4 -q /home/user/doc/scripts/rev.php php pt_BR zh hk tw cs nl fi fr de el he hu it kr pl ro ru sk sl es sv tr ja +/usr/bin/php4 -q ./rev.php php pt_BR zh hk tw cs nl fi fr de el he hu it kr pl ro ru sk sl es sv tr ja echo "...terminé." # Puis Pear echo "Génération du revcheck Pear" -/usr/bin/php4 -q /home/user/doc/scripts/rev.php pear nl fr hu ru ja +/usr/bin/php4 -q ./rev.php pear nl fr hu ru ja echo "...terminé." # Puis smarty echo "Génération du revcheck smarty" -/usr/bin/php4 -q /home/user/doc/scripts/rev.php smarty pt_BR fr de ru +/usr/bin/php4 -q ./rev.php smarty pt_BR fr de ru echo "...terminé." # Puis Gtk echo "Génération du revcheck gtk" -/usr/bin/php4 -q /home/user/doc/scripts/rev.php gtk pt_BR cs fr de it es ja +/usr/bin/php4 -q ./rev.php gtk pt_BR cs fr de it es ja echo "...terminé." ############ # Génération des images info_revcheck ############ echo "Génération des images info_revcheck Php" -/usr/bin/php4 -q /home/user/doc/scripts/gen_picture_info.php php pt_BR zh hk tw cs nl fi fr de el he hu it kr pl ro ru sk sl es sv tr ja +/usr/bin/php4 -q ./gen_picture_info.php php pt_BR zh hk tw cs nl fi fr de el he hu it kr pl ro ru sk sl es sv tr ja echo "... terminé" echo "Génération des images info_revcheck Smarty" -/usr/bin/php4 -q /home/user/doc/scripts/gen_picture_info.php smarty pt_BR zh hk tw cs nl fi fr de el he hu it kr pl ro ru sk sl es sv tr ja +/usr/bin/php4 -q ./gen_picture_info.php smarty pt_BR zh hk tw cs nl fi fr de el he hu it kr pl ro ru sk sl es sv tr ja echo "... terminé" echo "Génération des images info_revcheck Pear" -/usr/bin/php4 -q /home/user/doc/scripts/gen_picture_info.php pear pt_BR zh hk tw cs nl fi fr de el he hu it kr pl ro ru sk sl es sv tr ja +/usr/bin/php4 -q ./gen_picture_info.php pear pt_BR zh hk tw cs nl fi fr de el he hu it kr pl ro ru sk sl es sv tr ja echo "... terminé" echo "Génération des images info_revcheck Gtk" -/usr/bin/php4 -q /home/user/doc/scripts/gen_picture_info.php gtk pt_BR zh hk tw cs nl fi fr de el he hu it kr pl ro ru sk sl es sv tr ja +/usr/bin/php4 -q ./gen_picture_info.php gtk pt_BR zh hk tw cs nl fi fr de el he hu it kr pl ro ru sk sl es sv tr ja echo "... terminé" echo "Génération des images info_revcheckDOC_all_lang.png pour chaqu'une des documentations" -/usr/bin/php4 -q /home/user/doc/scripts/gen_picture_info_all_lang.php +/usr/bin/php4 -q ./gen_picture_info_all_lang.php echo "... terminé" http://cvs.php.net/diff.php/docweb/scripts/rev.php?r1=1.1&r2=1.2&ty=u Index: docweb/scripts/rev.php diff -u docweb/scripts/rev.php:1.1 docweb/scripts/rev.php:1.2 --- docweb/scripts/rev.php:1.1 Wed Aug 4 13:14:55 2004 +++ docweb/scripts/rev.php Thu Aug 5 10:30:56 2004 @@ -65,17 +65,18 @@ **/ // define some common variables -include '/home/user/doc/include/lib_general.inc.php'; +include '../include/lib_general.inc.php'; // grab the documentation type $TYPE = array_shift($argv); +/** Disable for now, function not found using grep **/ // check for validity -if (!documentation_exists($TYPE)) { - die("$TYPE is not a valid documentation type\n"); -} else { +//if (!documentation_exists($TYPE)) { +// die("$TYPE is not a valid documentation type\n"); +//} else { $DOCS = CVS_DIR . get_cvs_dir($TYPE); -} +//} // $argv was shifted before $LANGS = $argv;

« previous php.doc.web (#130) next »