cvs: phpdoc /scripts entities.php

From: Date: Sat, 22 Sep 2001 17:46:06 +0000
Subject: cvs: phpdoc /scripts entities.php
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969337686@lists.php.net to get a copy of this message
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 +?>

« previous php.doc (#969337686) next »