aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2016-03-25 08:11:30 -0700
committerGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2016-03-25 08:11:30 -0700
commit195fd84917a036ed04cb65bc2c9d5f34c1bfa262 (patch)
tree984d620b499ecfee6f5ebc8fd1bd825d1ec906cc /tools
parent36da240b211bb27691c187adda31ece1322b31c3 (diff)
parent3dab4628c6d72e50d0945be127e558c35c22f20c (diff)
Merge pull request #5931 from stanley-cheung/php-remove-hardcode-version
PHP: remove hardcoded version in templates
Diffstat (limited to 'tools')
-rwxr-xr-xtools/buildgen/plugins/expand_version.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/buildgen/plugins/expand_version.py b/tools/buildgen/plugins/expand_version.py
index b55e1b15ff..dd77f7af12 100755
--- a/tools/buildgen/plugins/expand_version.py
+++ b/tools/buildgen/plugins/expand_version.py
@@ -84,6 +84,11 @@ class Version:
else:
return '%d.%d.%d' % (self.major, self.minor, self.patch)
+ def php(self):
+ """Version string in PHP style"""
+ """PECL does not allow tag in version string"""
+ return '%d.%d.%d' % (self.major, self.minor, self.patch)
+
def mako_plugin(dictionary):
"""Expand version numbers:
- for each language, ensure there's a language_version tag in