[pear install] Fixing documentation path
| From: | Martin Jansen | Date: | Sat, 20 Apr 2002 10:33:46 +0000 |
| Subject: | [pear install] Fixing documentation path | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-5687@lists.php.net to get a copy of this message | ||
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?
- Martin
--
Martin Jansen, <mail@martin-jansen.de>
http://www.martin-jansen.de/