diff options
Diffstat (limited to 'pear/scripts/pearcmd-uninstall.php')
-rw-r--r-- | pear/scripts/pearcmd-uninstall.php | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/pear/scripts/pearcmd-uninstall.php b/pear/scripts/pearcmd-uninstall.php deleted file mode 100644 index 18f4e41931..0000000000 --- a/pear/scripts/pearcmd-uninstall.php +++ /dev/null @@ -1,26 +0,0 @@ -<?php - -include_once 'PEAR/Installer.php'; -$pkgfile = $cmdargs[0]; -$installer =& new PEAR_Installer($script_dir, $ext_dir, $doc_dir); -$installer->setErrorHandling(PEAR_ERROR_DIE, - basename($pkgfile) . ": %s\n"); -$installer->debug = $verbose; -$uninstall_options = array(); -foreach ($cmdopts as $opt) { - switch ($opt[0]) { - case 'r': - $uninstall_options['register_only'] = true; - break; - case 'f': - $uninstall_options['force'] = true; - break; - } -} -if ($installer->uninstall($pkgfile, $uninstall_options)) { - print "uninstall ok\n"; -} else { - print "uninstall failed\n"; -} - -?> |