Re: cvs: pear /PHPUnit/Runner Version.php
| From: | Greg Beaver | Date: | Sun, 18 Jan 2004 19:09:22 +0000 |
| Subject: | Re: cvs: pear /PHPUnit/Runner Version.php | ||
| References: | 1 | Groups: | php.pear.cvs |
| Request: | Send a blank email to pear-cvs+get-15768@lists.php.net to get a copy of this message | ||
Hi Sebastian,
Two ways to do what you need.
1) use PEAR_PackageFileManager to generate the file and use the functions designed to do replacements (you can use the CVS version if you wish to have the same simple packagefile layout)
2)
<file role="php" name="Version.php">
<replace from="@version@" to="version" type="package-info" />
</file>
Regards,
Greg
Sebastian Bergmann wrote:
sebastian Sun Jan 18 04:50:18 2004 EDTModified files: /pear/PHPUnit/Runner Version.php Log:Revert after tag&release. Index: pear/PHPUnit/Runner/Version.php diff -u pear/PHPUnit/Runner/Version.php:1.4 pear/PHPUnit/Runner/Version.php:1.5 --- pear/PHPUnit/Runner/Version.php:1.4 Sun Jan 18 04:26:42 2004 +++ pear/PHPUnit/Runner/Version.php Sun Jan 18 04:50:18 2004 @@ -12,7 +12,7 @@// | license@php.net so we can mail you a copy immediately. |// +------------------------------------------------------------------------+ // -// $Id: Version.php,v 1.4 2004/01/18 09:26:42 sebastian Exp $ +// $Id: Version.php,v 1.5 2004/01/18 09:50:18 sebastian Exp $ // /** @@ -32,14 +32,14 @@* @static */public static function id() {- return 'PHPUnit-1.0.0alpha3'; + return '@version@';}// }}} // {{{ public function getVersionString() public static function getVersionString() { - return "PHPUnit 1.0.0alpha3 by Sebastian Bergmann."; + return "PHPUnit @version@ by Sebastian Bergmann."; } // }}}