fixed #15 (switched doc generator to doxygen)
This commit is contained in:
parent
f4564b86a7
commit
00c78469d3
1 changed files with 7 additions and 8 deletions
|
@ -41,22 +41,21 @@
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$vzDir = '/var/www/volkszaehler.org';
|
$vzDir = '/var/www/vz';
|
||||||
$output = array();
|
$output = array();
|
||||||
$rc = 0;
|
$rc = 0;
|
||||||
|
|
||||||
# change directory
|
// change directory
|
||||||
chdir($vzDir . '/github/');
|
chdir($vzDir . '/github/');
|
||||||
|
|
||||||
# update git
|
// update git
|
||||||
$cmd = 'git pull';
|
$cmd = 'git pull';
|
||||||
$output[] = $cmd . PHP_EOL;
|
$output[] = $cmd . PHP_EOL;
|
||||||
exec($cmd, $output, $rc);
|
exec($cmd, $output, $rc);
|
||||||
|
|
||||||
if ($rc == 0) {
|
if ($rc == 0) { // git pull succeded
|
||||||
# update documentation
|
// update documentation
|
||||||
$cmd = $vzDir . '/phpdoc/phpdoc -c ' . $vzDir . '/github/misc/tools/phpdoc.ini';
|
$cmd = 'doxygen ' . $vzDir . '/doxygen.conf';
|
||||||
//$cmd = 'php5 ' . $vzDir . '/phpdoctor/phpdoc.php ' . $vzDir . '/github/misc/tools/phpdoctor.ini';
|
|
||||||
$output[] = PHP_EOL . $cmd . PHP_EOL;
|
$output[] = PHP_EOL . $cmd . PHP_EOL;
|
||||||
exec($cmd, $output, $rc);
|
exec($cmd, $output, $rc);
|
||||||
}
|
}
|
||||||
|
@ -68,4 +67,4 @@ foreach ($output as $line) {
|
||||||
?>
|
?>
|
||||||
</pre>
|
</pre>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Add table
Reference in a new issue