Re: [PEAR Installer] Defining variable replacement for more than one source file
| From: | Daniel Convissor | Date: | Mon, 11 Apr 2005 14:47:47 +0000 |
| Subject: | Re: [PEAR Installer] Defining variable replacement for more than one source file | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-37168@lists.php.net to get a copy of this message | ||
On Mon, Apr 11, 2005 at 08:15:43AM +0200, Sebastian Bergmann wrote:
>
> Is there a way to define a replace operation in package.xml for more
> than one file?
In package.xml no. Using the package file manager, one can use the new
addGlobalReplacement() method.
http://pear.php.net/manual/en/package.pear.pear-packagefilemanager.pear-packagefilemanager.addglobalreplacement.php
> Would it not be better to define a set of variables like
> @package_version@ that always get replaced (like CVS always replaces
> RCS variables)?
Sounds good to me.
--Dan
--
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
data intensive web and database programming
http://www.AnalysisAndSolutions.com/
4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409