Beispiel #1
0
                continue;
            }
            if ($fileInfo->isDir()) {
                $node = new DOMElement('dir');
                $return->appendChild($node);
                $node->setAttribute('name', $fileInfo->getBasename());
                $this->getDirectoryListing($fileInfo->getPathname(), $node);
            } else {
                $node = new DOMElement('file');
                $return->appendChild($node);
                $node->setAttribute('name', $fileInfo->getBasename());
                $node->setAttribute('role', 'php');
            }
        }
    }
    public function usage()
    {
        echo <<<STDOUT
    Usage: package --version= --source=

STDOUT;
        exit(1);
    }
}
$a = $argc;
$b = $argv;
$c = realpath(__FILE__);
if (realpath($argv[0]) == realpath(__FILE__)) {
    $pxml = new PackageXML();
    $pxml->run();
}