Re: [pear install] Fixing documentation path
| From: | Stig S. Bakken | Date: | Sat, 20 Apr 2002 23:07:53 +0000 |
| Subject: | Re: [pear install] Fixing documentation path | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-5696@lists.php.net to get a copy of this message | ||
On Sat, 2002-04-20 at 12:33, Martin Jansen wrote:
> When installing PEAR::Auth, I ran in the following problem:
>
> martin@urmel:~/cvs/pear/pear/Auth > pear install Auth-1.0.1.tgz
> installed file /usr/local/lib/php/Auth/Auth.php
> installed file /usr/local/lib/php/Auth/Container.php
> installed file /usr/local/share/php/doc/pear/Auth/Auth/README.Auth
> installed file /usr/local/lib/php/Auth/Container/DB.php
> installed file /usr/local/lib/php/Auth/Container/File.php
> installed file /usr/local/lib/php/Auth/Container/LDAP.php
> install ok
>
> As one can see, README.Auth is stored in /usr/.../doc/pear/Auth/Auth,
> which is wrong, since it should be /usr/local/share/php/doc/pear/Auth/
> (one "Auth" less). The following patch to PEAR/Installer.php fixes
> this problem:
>
> Index: Installer.php
> ===================================================================
> RCS file: /repository/php4/pear/PEAR/Installer.php,v
> retrieving revision 1.48
> diff -u -r1.48 Installer.php
> --- Installer.php 13 Apr 2002 06:00:36 -0000 1.48
> +++ Installer.php 20 Apr 2002 10:26:56 -0000
> @@ -146,7 +146,7 @@
> default:
> break;
> }
> - if (isset($atts['baseinstalldir'])) {
> + if (isset($atts['baseinstalldir']) && $atts['role'] !=
> 'doc') {
> $dest_dir .= DIRECTORY_SEPARATOR . $atts['baseinstalldir'];
> }
> if (dirname($file) != '.') {
>
> Can I commit this?
Go ahead.
- Stig