Skip to content

Commit

Permalink
Automatically set module version number when building release (Bug #1…
Browse files Browse the repository at this point in the history
…4240).
  • Loading branch information
yunosh committed Feb 9, 2016
1 parent 4c82bee commit aab069b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion framework/lz4/horde_lz4.h
Expand Up @@ -4,7 +4,7 @@
extern zend_module_entry horde_lz4_module_entry;
#define phpext_horde_lz4_ptr &horde_lz4_module_entry

#define HORDE_LZ4_EXT_VERSION "1.0.8"
#define HORDE_LZ4_EXT_VERSION "@version@"

#ifdef PHP_WIN32
# define PHP_HORDE_LZ4_API __declspec(dllexport)
Expand Down
8 changes: 5 additions & 3 deletions framework/lz4/package.xml
Expand Up @@ -21,7 +21,7 @@
</stability>
<license uri="http://opensource.org/licenses/MIT">MIT (Expat)</license>
<notes>
*
* [jan] Fix module version number (Bug #14240).
</notes>
<contents>
<dir name="/">
Expand All @@ -41,7 +41,9 @@
<file name="config.m4" role="src" />
<file name="CREDITS" role="doc" />
<file name="horde_lz4.c" role="src" />
<file name="horde_lz4.h" role="src" />
<file name="horde_lz4.h" role="src">
<tasks:replace from="@version@" to="version" type="package-info" />
</file>
<file name="LICENSE" role="doc" />
<dir name="lib">
<file name="LICENSE" role="doc" />
Expand Down Expand Up @@ -241,7 +243,7 @@
<date>2016-02-01</date>
<license uri="http://opensource.org/licenses/MIT">MIT (Expat)</license>
<notes>
*
* [jan] Fix module version number (Bug #14240).
</notes>
</release>
</changelog>
Expand Down

0 comments on commit aab069b

Please sign in to comment.