From bb607d2d62f85bc0187889dfa6eb3cf29a2a3917 Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Thu, 10 Oct 2002 01:02:42 +0000 Subject: [PATCH] * add --installroot / -R option to install/upgrade commands --- pear/PEAR/Command/Install.php | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pear/PEAR/Command/Install.php b/pear/PEAR/Command/Install.php index ebdb169889f..fd3ed39f247 100644 --- a/pear/PEAR/Command/Install.php +++ b/pear/PEAR/Command/Install.php @@ -61,6 +61,11 @@ class PEAR_Command_Install extends PEAR_Command_Common 'shortopt' => 'Z', 'doc' => 'request uncompressed files when downloading', ), + 'installroot' => array( + 'shortopt' => 'R', + 'arg' => 'DIR', + 'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)', + ), ), 'doc' => ' ... Installs one or more PEAR packages. You can specify a package to @@ -107,6 +112,11 @@ four ways of specifying packages. 'shortopt' => 'Z', 'doc' => 'request uncompressed files when downloading', ), + 'installroot' => array( + 'shortopt' => 'R', + 'arg' => 'DIR', + 'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)', + ), ), 'doc' => ' ... Upgrades one or more PEAR packages. See documentation for the @@ -139,6 +149,11 @@ More than one package may be specified at once. 'shortopt' => 'Z', 'doc' => 'request uncompressed files when downloading', ), + 'installroot' => array( + 'shortopt' => 'R', + 'arg' => 'DIR', + 'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)', + ), ), 'doc' => ' Upgrades all packages that have a newer release available. Upgrades are @@ -159,6 +174,11 @@ more stable. 'shortopt' => 'r', 'doc' => 'do not remove files, only register the packages as not installed', ), + 'installroot' => array( + 'shortopt' => 'R', + 'arg' => 'DIR', + 'doc' => 'root directory used when installing files (ala PHP\'s INSTALL_ROOT)', + ), ), 'doc' => ' ... Uninstalls one or more PEAR packages. More than one package may be