diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-07-31 10:50:48 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-07-31 10:50:48 +0200 |
commit | 9a7dac7854b47f9bfebbc47e9b2ba28fb8047326 (patch) | |
tree | 8e9f05f8f0d32451a06c8625be3de9f4ba872753 /install-pear.php | |
parent | f37e9fd56e4179739a7e87efbe3e9ef002002222 (diff) |
php-pear: 1.10.0dev2
Diffstat (limited to 'install-pear.php')
-rw-r--r-- | install-pear.php | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/install-pear.php b/install-pear.php index 4ed36d6..3d2bb37 100644 --- a/install-pear.php +++ b/install-pear.php @@ -1,10 +1,8 @@ <?php -while (@ob_end_flush()); -/* $Id$ */ error_reporting(1803); -if (ini_get('date.timezone') === '' && function_exists('date_default_timezone_set')) { +if (ini_get('date.timezone') === '') { date_default_timezone_set('UTC'); } @@ -91,6 +89,9 @@ for ($i = 0; $i < sizeof($argv); $i++) { $debug = 1; } elseif ($arg == '--extremedebug') { $debug = 2; + } elseif ($arg == '-M' || $arg == '--man') { + $man_dir = $argv[$i+1]; + $i++; } } @@ -133,6 +134,11 @@ if (!empty($www_dir)) { $config->set('www_dir', $www_dir, 'default'); } +// Manual pages +if (!empty($man_dir)) { + $config->set('man_dir', $man_dir, 'default'); +} + // Downloaded files if (!empty($download_dir)) { $config->set('download_dir', $download_dir, 'default'); @@ -162,6 +168,7 @@ if (!empty($test_dir)) { if (!empty($with_dir)) { $ds = DIRECTORY_SEPARATOR; $config->set('php_dir', $with_dir, 'default'); + // Metadata if (!empty($metadata_dir)) { $config->set('metadata_dir', $metadata_dir, 'default'); @@ -181,6 +188,9 @@ if (!empty($with_dir)) { if (empty($cfg_dir)) { $config->set('cfg_dir', $with_dir . $ds . 'cfg', 'default'); } + if (empty($man_dir)) { + $config->set('man_dir', $with_dir . $ds . 'local' . $ds . 'man', 'default'); + } if (!is_writable($config->get('cache_dir'))) { include_once 'System.php'; $cdir = System::mktemp(array('-d', 'pear')); @@ -218,7 +228,7 @@ if (isset($suffix)) { } } -/* Print PEAR Conf (useful for debuging do NOT REMOVE) */ +/* Print PEAR Conf (useful for debugging do NOT REMOVE) */ if ($debug) { sort($keys); foreach ($keys as $key) { |