-
大小: 4.28MB文件类型: .gz金币: 2下载: 2 次发布日期: 2023-10-28
- 语言: 其他
- 标签: protobuf-3.6
资源简介
protobuf-3.6.1.tar.gz 开发必备的许可协议。有需求的自行下载。
代码片段和文件信息
#!/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“
“javanano“
“src/google/protobuf/compiler/cpp“
])
Language(“Python“ [
“javanano“
“src/google/protobuf/compiler/python“
])
Language(“javascript“ [
“js“
“src/google/protobuf/compiler/js“
])
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 “)
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/google/protobuf/commit/“)
- 上一篇:ISE使用指南(完整版)
- 下一篇:mybatis逆向工具
评论
共有 条评论