#!@prefix@/bin/php -Cq | // | Tomas V.V.Cox | // +----------------------------------------------------------------------+ // require_once 'PEAR.php'; require_once 'PEAR/Remote.php'; error_reporting(E_ALL & ~E_NOTICE); $subcommands = array( 'help' => 'help [command]', 'install' => 'install [-r] ', 'upgrade' => 'upgrade [-r] ', 'list' => 'list', 'info' => 'info ', ); $shortcuts = array( 'list' => 'remote-list', 'upgrade' => 'install', ); $command_options = array( 'install' => 'fr', ); include "pearcmd-common.php"; if (isset($shortcuts[$command])) { $realcommand = $shortcuts[$command]; } else { $realcommand = $command; } if (isset($subcommands[$command])) { include "pearcmd-$realcommand.php"; } elseif (!$store_default_config && !$store_user_config) { usage(); } ?>