nlopess Fri Jun 25 13:57:23 2004 EDT
Modified files:
/phpdoc/scripts file-entities.php.in orphan_notes.php
Log:
better stats and skip bz2 files
http://cvs.php.net/diff.php/phpdoc/scripts/file-entities.php.in?r1=1.14&r2=1.15&ty=u
Index: phpdoc/scripts/file-entities.php.in
diff -u phpdoc/scripts/file-entities.php.in:1.14
phpdoc/scripts/file-entities.php.in:1.15
--- phpdoc/scripts/file-entities.php.in:1.14 Wed Dec 31 20:08:46 2003
+++ phpdoc/scripts/file-entities.php.in Fri Jun 25 13:57:23 2004
@@ -17,7 +17,7 @@
| Gabor Hojtsy <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
- $Id: file-entities.php.in,v 1.14 2004/01/01 01:08:46 goba Exp $
+ $Id: file-entities.php.in,v 1.15 2004/06/25 17:57:23 nlopess Exp $
*/
/**
@@ -111,7 +111,7 @@
}
// Install part already splitted? [temporary]
-if (file_exists("$trans_dir/chapters/install.xml")) {
+/*if (file_exists("$trans_dir/chapters/install.xml")) {
fputs(
$fp,
"<!-- old install.xml found in language dir -->\n" .
@@ -126,7 +126,7 @@
);
echo " Using the install part from installpart.xml\n";
}
-
+*/
// Reserved constants list is special [temporary]
fputs(
$fp,
http://cvs.php.net/diff.php/phpdoc/scripts/orphan_notes.php?r1=1.1&r2=1.2&ty=u
Index: phpdoc/scripts/orphan_notes.php
diff -u phpdoc/scripts/orphan_notes.php:1.1 phpdoc/scripts/orphan_notes.php:1.2
--- phpdoc/scripts/orphan_notes.php:1.1 Wed May 26 15:04:14 2004
+++ phpdoc/scripts/orphan_notes.php Fri Jun 25 13:57:23 2004
@@ -16,7 +16,7 @@
| Authors: Nuno Lopes <[EMAIL PROTECTED]> |
+----------------------------------------------------------------------+
- $Id: orphan_notes.php,v 1.1 2004/05/26 19:04:14 nlopess Exp $
+ $Id: orphan_notes.php,v 1.2 2004/06/25 17:57:23 nlopess Exp $
*/
/*
@@ -59,12 +59,12 @@
/* Search for bogus notes IDs */
function recurse_notes($dir) {
- global $array, $total;
+ global $array, $files, $notes;
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
- if($file != '.' && $file != '..') {
+ if($file != '.' && $file != '..' && substr($file, -4) != '.bz2') {
$path = $dir.'/'.$file;
if(is_dir($path)) {
@@ -79,6 +79,7 @@
if ($line == "") { continue; }
list($id, $sect, , , , ) = explode("|", $line);
+ ++$notes;
if (!isset($done)) {
$done = 1;
@@ -89,7 +90,7 @@
}
}
echo "\n\n";
- $total++;
+ ++$files;
}
unset($done);
@@ -102,11 +103,11 @@
$array = array();
$len = strlen("$manual_dir/");
-$total = 0;
+$files = $notes = 0;
recurse_manual($manual_dir);
recurse_notes($notes_dir);
-echo "\nTotal: $total";
+echo "\nTotal files: $files\nTotal notes: $notes";
?>