Re: Re: coding standards: Header Comment Blocks
| From: | Tomas V.V.Cox | Date: | Tue, 08 Jun 2004 16:52:54 +0000 |
| Subject: | Re: Re: coding standards: Header Comment Blocks | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-30183@lists.php.net to get a copy of this message | ||
Tobias Schlitt wrote:
Hi Tomas V.V.Cox! You wrote:That's why my first post said: "replacements should need some regulations unless Greg learned black magic" :-). If we all agree that for example @release-version@ would be the correct "tag" for the package release version replacement, you won't need to call your method for each file and each replacement. Tomas V.V.CoxCan't be that hard to implement that in PEAR_PackageFileManager, can it?It's not hard at all, just read the contents of each file, scan for /@(.*)@/ and build the xml. Any of the presents in this lists can have it done in no more than 30 mins ;)I'd do that even more simply. Create a new method: addReplacement($from, $to, $type='package-info#) done. :) More flexible and I guess more feasible, because the file scan does not know which "type" to set and what the replacement should be.