/opt/alt/php52/usr/share/pear/PEAR/Command
NameSizeModeActions
Auth.php26090644editdlrm
Auth.xml12280644editdlrm
Build.php23010644editdlrm
Build.xml2600644editdlrm
Channels.php334860644editdlrm
Channels.xml42180644editdlrm
Common.php82450644editdlrm
Config.php154230644editdlrm
Config.xml33820644editdlrm
Install.php512030644editdlrm
Install.xml85740644editdlrm
Mirror.php45480644editdlrm
Mirror.xml6170644editdlrm
Package.php402170644editdlrm
Package.xml72220644editdlrm
Pickle.php159350644editdlrm
Pickle.xml11790644editdlrm
Registry.php463010644editdlrm
Registry.xml17900644editdlrm
Remote.php300230644editdlrm
Remote.xml33110644editdlrm
Test.php119280644editdlrm
Test.xml16410644editdlrm
Edit: /opt/alt/php52/usr/share/pear/PEAR/Command/Build.php (2301B)
* @author Tomas V.V.Cox * @author Greg Beaver * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License * @version CVS: $Id$ * @link http://pear.php.net/package/PEAR * @since File available since Release 0.1 */ /** * base class */ require_once 'PEAR/Command/Common.php'; /** * PEAR commands for building extensions. * * @category pear * @package PEAR * @author Stig Bakken * @author Tomas V.V.Cox * @author Greg Beaver * @copyright 1997-2009 The Authors * @license http://opensource.org/licenses/bsd-license.php New BSD License * @version Release: 1.9.5 * @link http://pear.php.net/package/PEAR * @since Class available since Release 0.1 */ class PEAR_Command_Build extends PEAR_Command_Common { var $commands = array( 'build' => array( 'summary' => 'Build an Extension From C Source', 'function' => 'doBuild', 'shortcut' => 'b', 'options' => array(), 'doc' => '[package.xml] Builds one or more extensions contained in a package.' ), ); /** * PEAR_Command_Build constructor. * * @access public */ function PEAR_Command_Build(&$ui, &$config) { parent::PEAR_Command_Common($ui, $config); } function doBuild($command, $options, $params) { require_once 'PEAR/Builder.php'; if (sizeof($params) < 1) { $params[0] = 'package.xml'; } $builder = &new PEAR_Builder($this->ui); $this->debug = $this->config->get('verbose'); $err = $builder->build($params[0], array(&$this, 'buildCallback')); if (PEAR::isError($err)) { return $err; } return true; } function buildCallback($what, $data) { if (($what == 'cmdoutput' && $this->debug > 1) || ($what == 'output' && $this->debug > 0)) { $this->ui->outputData(rtrim($data), 'build'); } } }