Skip to content

Commit

Permalink
Request #18367 Please allow to set doc_dir during install
Browse files Browse the repository at this point in the history
  • Loading branch information
CloCkWeRX committed Jan 8, 2012
1 parent e366111 commit 3db1648
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion install-pear.php
Expand Up @@ -75,6 +75,9 @@
} elseif ($arg == '-t') { } elseif ($arg == '-t') {
$temp_dir = $argv[$i+1]; $temp_dir = $argv[$i+1];
$i++; $i++;
} elseif ($arg == '-D') {
$doc_dir = $argv[$i+1];
$i++;
} elseif ($arg == '--debug') { } elseif ($arg == '--debug') {
$debug = 1; $debug = 1;
} elseif ($arg == '--extremedebug') { } elseif ($arg == '--extremedebug') {
Expand Down Expand Up @@ -131,11 +134,18 @@
$config->set('temp_dir', $temp_dir, 'default'); $config->set('temp_dir', $temp_dir, 'default');
} }


// Documentation files
if (!empty($doc_dir)) {
$config->set('doc_dir', $doc_dir, 'default');
}

// User supplied a dir prefix // User supplied a dir prefix
if (!empty($with_dir)) { if (!empty($with_dir)) {
$ds = DIRECTORY_SEPARATOR; $ds = DIRECTORY_SEPARATOR;
$config->set('php_dir', $with_dir, 'default'); $config->set('php_dir', $with_dir, 'default');
$config->set('doc_dir', $with_dir . $ds . 'doc', 'default'); if (empty($doc_dir)) {
$config->set('doc_dir', $with_dir . $ds . 'doc', 'default');
}
$config->set('data_dir', $with_dir . $ds . 'data', 'default'); $config->set('data_dir', $with_dir . $ds . 'data', 'default');
$config->set('test_dir', $with_dir . $ds . 'test', 'default'); $config->set('test_dir', $with_dir . $ds . 'test', 'default');
if (empty($www_dir)) { if (empty($www_dir)) {
Expand Down

0 comments on commit 3db1648

Please sign in to comment.