#!@prefix@/bin/php -Cq | // | Tomas V.V.Cox | // +----------------------------------------------------------------------+ // require_once 'PEAR.php'; require_once 'PEAR/Common.php'; require_once 'PEAR/Registry.php'; error_reporting(E_ALL & ~E_NOTICE); $subcommands = array( 'help' => 'help [command]', 'uninstall' => 'uninstall [-r] ', 'package' => 'package [package info file]', 'info' => 'info', 'list' => 'list', 'show-config' => 'show-config', ); $command_options = array( "list" => "v", "uninstall" => "fr", ); include "pearcmd-common.php"; if (isset($subcommands[$command])) { include "pearcmd-$command.php"; } elseif (!$store_default_config && !$store_user_config) { usage(); } /* * Local variables: * tab-width: 4 * c-basic-offset: 4 * indent-tabs-mode: nil * End: */ ?>