Directory structure problem
| From: | Mika Tuupola | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Directory structure problem | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-1577@lists.php.net to get a copy of this message | ||
While writing the GSM_SMS stuff for PEAR and looking at the
package.xml file it occurred me that in some cases there will
be some problems.
If in CVS I had directory structure like this:
GSM_SMS/
SMS.php
Bearer.php
Bearer/
kannel.php
otherdriver.php
...
and in package.xml I have something like this:
<FileList>
<Dir Name="GSM">
<File Role="php">SMS.php</File>
<Dir Name="SMS">
<File Role="php">Bearer.php</File>
<Dir Name="Bearer">
<File Role="php">kannel.php</File>
<File Role="php">otherdriver.php</File>
</Dir>
</Dir>
</Dir>
</FileList>
meaning after running the pear installer on GSM_SMS package
the directory structure will be:
GSM/
SMS.php
SMS/
Bearer.php
Bearer/
kannel.php
otherdriver.php
...
this will break the requires and includes which are something
like:
require_once('GSM_SMS/Bearer/kannel.php');
I can find a couple of solutions for this. a) have the stuff
in cvs in GSM/SMS/ directory. b) install the stuff in GSM_SMS/
c) change the requires when running the pear installer
What should I do?
--
Mika Tuupola http://www.appelsiini.net/~tuupola/