diff options
Diffstat (limited to 'create_lts.py')
-rwxr-xr-x | create_lts.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/create_lts.py b/create_lts.py index 56170806..7e5368e1 100755 --- a/create_lts.py +++ b/create_lts.py @@ -33,7 +33,7 @@ def ReplaceStringsInFile(filename, replacement_dict): values Raises: - Exception: A failure occured + Exception: A failure occurred """ f = open(filename, 'r') content = f.read() @@ -62,7 +62,7 @@ def StripContentBetweenTags(filename, strip_begin_tag, strip_end_tag): strip_end_tag: the end of the content to be removed Raises: - Exception: A failure occured + Exception: A failure occurred """ f = open(filename, 'r') content = f.read() @@ -96,6 +96,11 @@ def main(argv): # Replacement directives go here. ReplaceStringsInFile( + 'MODULE.bazel', { + 'version = "head"': + 'version = "{}.0"'.format(datestamp) + }) + ReplaceStringsInFile( 'absl/base/config.h', { '#undef ABSL_LTS_RELEASE_VERSION': '#define ABSL_LTS_RELEASE_VERSION {}'.format(datestamp), |