Re: [PEPr] +1 for File Formats::File_CAB
| From: | Christian Weiske | Date: | Wed, 06 Feb 2008 11:40:25 +0000 |
| Subject: | Re: [PEPr] +1 for File Formats::File_CAB | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-49100@lists.php.net to get a copy of this message | ||
Hallo David,
> > You should use instead the %bin_dir% variable substitution provided by the
> > pear installer, for example:
> > const UNIX_COMMAND = '%bin_dir%/cabextract';
> > and in your package.xml:
> > <tasks:replace from="@bin_dir@" to="bin_dir"
> > type="pear-config" />
>
> Yes I know about bin_dir but it would skip my /usr/bin/cabextract installation
> ;) Also, bin_dir may not necessarily point to /usr/local/bin. For someone
> wanting to install pear without sudo access, they need to make it something like
> ~/pear/bin.
>
> A few people have mentioned this now so I'm wondering whether using something
> like "which --skip-dot --skip-tilde cabextract" might be the way to go? Anyone
> have any input? However I just checked the BSD version of which on my mac and
> it doesn't have this option...
PEAR has System::which(), might help you.
--
Regards/Mit freundlichen Grüßen
Christian Weiske