cvs: php4 /pear/scripts pearwin.php
| From: | Vincent Blavet | Date: | Wed, 13 Feb 2002 21:27:54 +0000 |
| Subject: | cvs: php4 /pear/scripts pearwin.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-2432@lists.php.net to get a copy of this message | ||
vblavet Wed Feb 13 16:27:54 2002 EDT
Modified files:
/php4/pear/scripts pearwin.php
Log:
* Synchronize pearwin script with pearcmd-xxx.php commands
* Still work to do
Index: php4/pear/scripts/pearwin.php
diff -u php4/pear/scripts/pearwin.php:1.6 php4/pear/scripts/pearwin.php:1.7
--- php4/pear/scripts/pearwin.php:1.6 Wed Feb 13 03:50:07 2002
+++ php4/pear/scripts/pearwin.php Wed Feb 13 16:27:54 2002
@@ -17,7 +17,7 @@
// | Tomas V.V.Cox <cox@idecnet.com> |
// +----------------------------------------------------------------------+
//
-// $Id: pearwin.php,v 1.6 2002/02/13 08:50:07 vblavet Exp $
+// $Id: pearwin.php,v 1.7 2002/02/13 21:27:54 vblavet Exp $
require_once 'PEAR.php';
require_once 'PEAR/Common.php';
@@ -158,56 +158,16 @@
switch ($command) {
case 'install':
- include_once 'PEAR/Installer.php';
- $package = $options[1][2];
- $installer =& new PEAR_Installer($script_dir, $ext_dir, $doc_dir);
- $installer->debug = $verbose;
- if (PEAR::isError($installer->Install($package))) {
- print "\ninstall failed\n";
- } else {
- print "install ok\n";
- }
+ include 'pearcmd-install.php';
break;
case 'uninstall':
- include_once 'PEAR/Installer.php';
- $package = $options[1][2];
- $installer =& new PEAR_Installer($script_dir, $ext_dir, $doc_dir);
- $installer->debug = $verbose;
- if (PEAR::isError($installer->uninstall($package))) {
- print "\nuninstall failed\n";
- } else {
- print "uninstall ok\n";
- }
+ include 'pearcmd-uninstall.php';
break;
case 'list':
- include_once 'PEAR/Registry.php';
- $reg = &new PEAR_Registry($script_dir);
- $installed = $reg->packageInfo();
- $i = $j = 0;
- heading("Installed packages:");
- foreach ($installed as $package) {
- if ($i++ % 20 == 0) {
- if ($j++ > 0) {
- print "\n";
- }
- printf("%-20s %-10s %s\n",
- "Package", "Version", "State");
- print str_repeat("-", 75)."\n";
- }
- printf("%-20s %-10s %s\n", $package['package'],
- $package['version'], $package['release_state']);
- }
+ include 'pearcmd-list.php';
break;
case 'package':
- include_once 'PEAR/Packager.php';
- $pkginfofile = $options[1][2];
- $packager =& new PEAR_Packager($script_dir, $ext_dir, $doc_dir);
- $packager->debug = $verbose;
- if (PEAR::isError($packager->Package($pkginfofile))) {
- print "\npackage failed\n";
- } else {
- print "package ok\n";
- }
+ include 'pearcmd-package.php';
break;
case 'remote-list':
include 'pearcmd-remote-list.php';