diff options
author | Stig Bakken <ssb@php.net> | 2002-06-06 10:51:26 +0000 |
---|---|---|
committer | Stig Bakken <ssb@php.net> | 2002-06-06 10:51:26 +0000 |
commit | d1826b42874c4a1e29c0ac75810204571c387d20 (patch) | |
tree | f5b19295b891960c2d1d34d4151af57432342301 | |
parent | d8c07cc63d15855f426e5af65a87d27d145d1e44 (diff) | |
download | php-git-d1826b42874c4a1e29c0ac75810204571c387d20.tar.gz |
* add "nobuild" option to installer (-B or --nobuild option to CLI frontend)
-rw-r--r-- | pear/PEAR/Command/Install.php | 8 | ||||
-rw-r--r-- | pear/PEAR/Installer.php | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/pear/PEAR/Command/Install.php b/pear/PEAR/Command/Install.php index cabd97ff1f..6c24be19ad 100644 --- a/pear/PEAR/Command/Install.php +++ b/pear/PEAR/Command/Install.php @@ -53,6 +53,10 @@ class PEAR_Command_Install extends PEAR_Command_Common 'shortopt' => 's', 'doc' => 'soft install, fail silently, or upgrade if already installed', ), + 'nobuild' => array( + 'shortopt' => 'B', + 'doc' => 'don\'t build C extensions', + ), 'nocompress' => array( 'shortopt' => 'Z', 'doc' => 'request uncompressed files when downloading', @@ -95,6 +99,10 @@ four ways of specifying packages. 'shortopt' => 'r', 'doc' => 'do not install files, only register the package as upgraded', ), + 'nobuild' => array( + 'shortopt' => 'B', + 'doc' => 'don\'t build C extensions', + ), 'nocompress' => array( 'shortopt' => 'Z', 'doc' => 'request uncompressed files when downloading', diff --git a/pear/PEAR/Installer.php b/pear/PEAR/Installer.php index a3c8f100d2..246ae19183 100644 --- a/pear/PEAR/Installer.php +++ b/pear/PEAR/Installer.php @@ -467,7 +467,7 @@ class PEAR_Installer extends PEAR_Common } } - if ($this->source_files > 0) { + if ($this->source_files > 0 && empty($options['nobuild'])) { $this->log(1, "$this->source_files source files, building"); $bob = &new PEAR_Builder($this->ui); $bob->debug = $this->debug; |