Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Commit

Permalink
Use replace task for version information.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann authored and fabpot committed Nov 28, 2009
1 parent 237828c commit 6afabf7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion package.xml
Expand Up @@ -31,7 +31,9 @@
<dir name="/">
<file name="LICENSE" role="doc" />
<file name="README.markdown" role="doc" />
<file role="script" baseinstalldir="/" name="pirum" />
<file role="script" baseinstalldir="/" name="pirum">
<tasks:replace from="@package_version@" to="version" type="package-info" />
</file>
</dir>
</contents>
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion pirum
Expand Up @@ -25,7 +25,7 @@ if (isset($argv[0]) && __FILE__ == realpath($argv[0]))
*/
class Pirum_CLI
{
const VERSION = '0.9.3';
const VERSION = '@package_version@';

protected $options;
protected $formatter;
Expand Down

0 comments on commit 6afabf7

Please sign in to comment.