diff --git a/update_version.py b/update_version.py index 5395bd800351..9cf1dbf5ea9f 100755 --- a/update_version.py +++ b/update_version.py @@ -364,6 +364,13 @@ def UpdateRuby(): ' s.version = "%s"' % GetFullVersion(rc_suffix = '.rc.'), line)) +def UpdateBazel(): + RewriteTextFile('protobuf_version.bzl', + lambda line : re.sub( + r"^PROTOBUF_VERSION = '.*'$", + "PROTOBUF_VERSION = '%s'" % GetFullVersion(), + line)) + UpdateConfigure() UpdateCsharp() @@ -375,3 +382,4 @@ def UpdateRuby(): UpdatePhp() UpdatePython() UpdateRuby() +UpdateBazel()