mirror of
https://github.com/alliedmodders/hl2sdk.git
synced 2025-09-19 20:16:10 +08:00
Update Protobuf and add protos for CS2 (#176)
* Replace protobuf 2.6.1 with 3.21.8 * Update/add protobuf libs * Add CS2 protos * Remove old csgo/dota protos * Add versioned protoc bin * Comment out Valve's `schema` define for now * Use ENetworkDisconnectionReason * Fix-up `offsetof` to avoid errors on some Clang versions
This commit is contained in:

committed by
GitHub

parent
e6dc3f8a40
commit
c5d57c03ee
61
thirdparty/protobuf-3.21.8/generate_changelog.py
vendored
Normal file
61
thirdparty/protobuf-3.21.8/generate_changelog.py
vendored
Normal file
@ -0,0 +1,61 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
"""Generates a friendly list of changes per language since the last release."""
|
||||
|
||||
import sys
|
||||
import os
|
||||
|
||||
class Language(object):
|
||||
def __init__(self, name, pathspec):
|
||||
self.name = name
|
||||
self.pathspec = pathspec
|
||||
|
||||
languages = [
|
||||
Language("C++", [
|
||||
"':(glob)src/google/protobuf/*'",
|
||||
"src/google/protobuf/compiler/cpp",
|
||||
"src/google/protobuf/io",
|
||||
"src/google/protobuf/util",
|
||||
"src/google/protobuf/stubs",
|
||||
]),
|
||||
Language("Java", [
|
||||
"java",
|
||||
"src/google/protobuf/compiler/java",
|
||||
]),
|
||||
Language("Python", [
|
||||
"python",
|
||||
"src/google/protobuf/compiler/python",
|
||||
]),
|
||||
Language("PHP", [
|
||||
"php",
|
||||
"src/google/protobuf/compiler/php",
|
||||
]),
|
||||
Language("Ruby", [
|
||||
"ruby",
|
||||
"src/google/protobuf/compiler/ruby",
|
||||
]),
|
||||
Language("Csharp", [
|
||||
"csharp",
|
||||
"src/google/protobuf/compiler/csharp",
|
||||
]),
|
||||
Language("Objective C", [
|
||||
"objectivec",
|
||||
"src/google/protobuf/compiler/objectivec",
|
||||
]),
|
||||
]
|
||||
|
||||
if len(sys.argv) < 2:
|
||||
print("Usage: generate_changelog.py <previous release>")
|
||||
sys.exit(1)
|
||||
|
||||
previous = sys.argv[1]
|
||||
|
||||
for language in languages:
|
||||
print(language.name)
|
||||
sys.stdout.flush()
|
||||
os.system(("git log --pretty=oneline --abbrev-commit %s...HEAD %s | " +
|
||||
"sed -e 's/^/ - /'") % (previous, " ".join(language.pathspec)))
|
||||
print("")
|
||||
|
||||
print("To view a commit on GitHub: " +
|
||||
"https://github.com/protocolbuffers/protobuf/commit/<commit id>")
|
Reference in New Issue
Block a user