aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/buildgen/plugins
diff options
context:
space:
mode:
authorGravatar Stanley Cheung <stanleycheung@google.com>2018-01-19 15:27:19 -0800
committerGravatar Stanley Cheung <stanleycheung@google.com>2018-01-19 15:27:19 -0800
commitac3c69b99e88110938c22643d1fc4677b6b56173 (patch)
tree5871a19e909002f4f5fbee6b91e2505757038749 /tools/buildgen/plugins
parentfb309a966b1782a5c4afe6956344770d1ddefe71 (diff)
PHP: make generate_projects.sh smarter for package.xml
Diffstat (limited to 'tools/buildgen/plugins')
-rwxr-xr-xtools/buildgen/plugins/expand_version.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/buildgen/plugins/expand_version.py b/tools/buildgen/plugins/expand_version.py
index 8f56ce8fc9..facf349b0c 100755
--- a/tools/buildgen/plugins/expand_version.py
+++ b/tools/buildgen/plugins/expand_version.py
@@ -84,6 +84,13 @@ class Version:
% self.tag)
return s
+ def php_stability(self):
+ """stability string for PHP PECL package.xml file"""
+ if self.tag:
+ return 'beta'
+ else:
+ return 'stable'
+
def php_composer(self):
"""Version string for PHP Composer package"""
return '%d.%d.%d' % (self.major, self.minor, self.patch)