jeroen Sat Sep 22 13:46:06 2001 EDT
Modified files:
/phpdoc/scripts entities.php
Log:
Improve to also accept 'all' as language code, to see which entities are really
unused.
Index: phpdoc/scripts/entities.php
diff -u phpdoc/scripts/entities.php:1.1 phpdoc/scripts/entities.php:1.2
--- phpdoc/scripts/entities.php:1.1 Sat Sep 22 10:10:19 2001
+++ phpdoc/scripts/entities.php Sat Sep 22 13:46:06 2001
@@ -14,8 +14,8 @@
path from the phpdoc root) to a file containing
<!ENTITY...> definitions. Defaults to global.ent.
- <language-code> must be a valid language code
- used in the repository. Defaults to en.
+ <language-code> must be a valid language code used in the repository, or
+ 'all' for all languages. Defaults to en.
The script will generate an entity_usage.txt
file, containing the entities defined in the
@@ -47,9 +47,12 @@
// Parameter value copying
if ($argc == 3) {
$langcode = $argv[2];
- $filename = $argv[1];
+ if ($langcode === 'all') {
+ $langcode = '..';
+ }
}
-elseif ($argc == 2) {
+
+if ($argc >= 2) {
$filename = $argv[1];
}
@@ -180,4 +183,4 @@
echo "Done!\n";
-?>
\ No newline at end of file
+?>