]> granicus.if.org Git - php/commitdiff
include only the needed files
authorTomas V.V.Cox <cox@php.net>
Tue, 17 Jul 2001 19:11:48 +0000 (19:11 +0000)
committerTomas V.V.Cox <cox@php.net>
Tue, 17 Jul 2001 19:11:48 +0000 (19:11 +0000)
pear/scripts/pear.in

index 41fdde598d3ef4c7c4a11e65ddd31e9f2bc47005..850a0d21a76327d80649519cf6c831dfe44f16f8 100644 (file)
@@ -19,8 +19,6 @@
 // +----------------------------------------------------------------------+
 //
 require_once 'PEAR.php';
-require_once 'PEAR/Installer.php';
-require_once 'PEAR/Packager.php';
 require_once 'Console/Getopt.php';
 
 error_reporting(E_ALL ^ E_NOTICE);
@@ -67,6 +65,7 @@ PEAR::setErrorHandling(PEAR_ERROR_PRINT);
 $command = $options[1][1];
 switch ($command) {
     case 'install':
+        require_once 'PEAR/Installer.php';
         $package = $options[1][2];
         $installer =& new PEAR_Installer($script_dir, $ext_dir, $doc_dir);
         $installer->debug = $verbose;
@@ -77,6 +76,7 @@ switch ($command) {
         }
         break;
     case 'package':
+        require_once 'PEAR/Packager.php';
         $pkginfofile = $options[1][2];
         $packager =& new PEAR_Packager($script_dir, $ext_dir, $doc_dir);
         $packager->debug = $verbose;