* PEAR_Config class to maintain system and per-user configuration for

PEAR installations
* PEAR_Remote class to communicate with the backend server (xmlrpc)
* change pear script's option parsing to "-d foo=bar" style
* added -c/-C (user/system config file) and -s/-S (store user/system config)
  options
This commit is contained in:
Stig Bakken 2001-10-26 10:07:43 +00:00
parent 6586cf7216
commit f197cf3630
5 changed files with 392 additions and 37 deletions

View file

@ -38,19 +38,19 @@ foreach ($opts as $opt) {
break;
case 'e':
if ($param{0} != getenv('DIRECTORY_SEPARATOR')) {
usage (new PEAR_Error("no absolute path (ej. /usr/lib/php)\n"));
usage (new PEAR_Error("no absolute path (eg. /usr/lib/php)\n"));
}
$ext_dir = $param;
break;
case 'p':
if ($param{0} != getenv('DIRECTORY_SEPARATOR')) {
usage (new PEAR_Error("no absolute path (ej. /usr/lib/php)\n"));
usage (new PEAR_Error("no absolute path (eg. /usr/lib/php)\n"));
}
$script_dir = $param;
break;
case 'd':
if ($param{0} != getenv('DIRECTORY_SEPARATOR')) {
usage (new PEAR_Error("no absolute path (ej. /usr/lib/php)\n"));
usage (new PEAR_Error("no absolute path (eg. /usr/lib/php)\n"));
}
$doc_dir = $param;
break;