Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
18f1f814
Unverified
Commit
18f1f814
authored
Jan 24, 2019
by
Hao Nguyen
Committed by
GitHub
Jan 24, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5627 from haon4/master
Update more files in update_version.py
parents
d750fbf6
c70643ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
update_version.py
update_version.py
+13
-0
No files found.
update_version.py
View file @
18f1f814
...
...
@@ -86,11 +86,19 @@ def UpdateCpp():
r'^#define GOOGLE_PROTOBUF_VERSION .*$'
,
'#define GOOGLE_PROTOBUF_VERSION
%
s'
%
cpp_version
,
line
)
line
=
re
.
sub
(
r'^#define PROTOBUF_VERSION .*$'
,
'#define PROTOBUF_VERSION
%
s'
%
cpp_version
,
line
)
if
NEW_VERSION_INFO
[
2
]
==
'0'
:
line
=
re
.
sub
(
r'^#define GOOGLE_PROTOBUF_MIN_LIBRARY_VERSION .*$'
,
'#define GOOGLE_PROTOBUF_MIN_LIBRARY_VERSION
%
s'
%
cpp_version
,
line
)
line
=
re
.
sub
(
r'^#define PROTOBUF_MIN_HEADER_VERSION_FOR_PROTOC .*$'
,
'#define PROTOBUF_MIN_HEADER_VERSION_FOR_PROTOC
%
s'
%
cpp_version
,
line
)
line
=
re
.
sub
(
r'^#define GOOGLE_PROTOBUF_MIN_PROTOC_VERSION .*$'
,
'#define GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
%
s'
%
cpp_version
,
...
...
@@ -105,6 +113,7 @@ def UpdateCpp():
line
)
return
line
RewriteTextFile
(
'src/google/protobuf/stubs/common.h'
,
RewriteCpp
)
RewriteTextFile
(
'src/google/protobuf/port_def.inc'
,
RewriteCpp
)
def
UpdateCsharp
():
...
...
@@ -125,6 +134,10 @@ def UpdateJava():
lambda
document
:
ReplaceText
(
Find
(
document
.
documentElement
,
'version'
),
NEW_VERSION
))
RewriteXml
(
'java/bom/pom.xml'
,
lambda
document
:
ReplaceText
(
Find
(
document
.
documentElement
,
'version'
),
NEW_VERSION
))
RewriteXml
(
'java/core/pom.xml'
,
lambda
document
:
ReplaceText
(
Find
(
Find
(
document
.
documentElement
,
'parent'
),
'version'
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment