1 Star 0 Fork 30

huangjunjie/chromium_third_party_skia

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
milestone.py 987 Bytes
一键复制 编辑 原始数据 按行查看 历史
李想 提交于 2023-11-30 17:12 +08:00 . chromium 114 source init
#!/usr/bin/env python
# Copyright 2016 Google Inc.
#
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import sys
milestone_file = 'include/core/SkMilestone.h'
usage = '''
usage:
git fetch
git checkout -b change_milestone origin/main
python %s MILESTONE_NUMBER
git add %s
git commit -m "Update Skia milestone."
git cl land
'''
try:
milestone = int(sys.argv[1])
assert milestone > 0
except (IndexError, ValueError, AssertionError):
sys.stderr.write(usage % (sys.argv[0], milestone_file))
exit(1)
text = '''/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SK_MILESTONE
#define SK_MILESTONE %d
#endif
'''
os.chdir(os.path.join(os.path.dirname(__file__), os.pardir))
with open(milestone_file, 'w') as o:
o.write(text % milestone)
with open(milestone_file, 'r') as f:
sys.stdout.write(f.read())
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/huangjunjie31/chromium_third_party_skia.git
git@gitee.com:huangjunjie31/chromium_third_party_skia.git
huangjunjie31
chromium_third_party_skia
chromium_third_party_skia
114_trunk

搜索帮助