From: Michael Wallner Date: Tue, 27 Mar 2007 14:21:46 +0000 (+0000) Subject: - add doc progress checker X-Git-Tag: RELEASE_1_5_3~13 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=3837de728f09505d2bed811d0b26819ee719c3d9;p=m6w6%2Fext-http - add doc progress checker --- diff --git a/scripts/check_docs.php b/scripts/check_docs.php new file mode 100755 index 0000000..d65effa --- /dev/null +++ b/scripts/check_docs.php @@ -0,0 +1,53 @@ +#!/usr/bin/env php +getINIEntries() as $name => $tmp) { + re("configuration.xml", "#$name#") or printf("\t%s (%s)\n", $name, $tmp); +} +printf("\n"); + +printf("Undocumented constants:\n"); +foreach ($ext->getConstants() as $name => $tmp) { + re("constants.xml", "#$name#") or printf("\t%s (%s)\n", $name, $tmp); +} +printf("\n"); + + +printf("Undocumented functions:\n"); +foreach ($ext->getFunctions() as $func) { + /* @var $func ReflectionFunction */ + fg(sprintf("functions/*/%s.xml", strtr($func->getName(),'_','-'))) or printf("\t%s()\n", $func->getName()); +} +printf("\n"); + +printf("Undocumented classes/methods:\n"); +foreach ($ext->getClasses() as $class) { + if (substr($class->getName(), -strlen("Exception")) === "Exception") continue; + /* @var $class ReflectionClass */ + fg(sprintf("%s.xml", $class->getName())) or printf(" %s\n", $class->getName()); + foreach ($class->getMethods() as $meth) { + fg(sprintf("%s/%s.xml", $class->getName(), strtr(trim($meth->getName(),'_'),'_','-'))) or printf("\t%s::%s()\n", $class->getName(), $meth->getName()); + } + printf("\n"); +} +printf("\n"); + +?> diff --git a/scripts/gen_curlinfo.php b/scripts/gen_curlinfo.php index a07af22..f7c6cdb 100644 --- a/scripts/gen_curlinfo.php +++ b/scripts/gen_curlinfo.php @@ -1,3 +1,4 @@ +#!/usr/bin/env php