10milestone_file =
'include/core/SkMilestone.h'
15 git checkout -b change_milestone origin/main
16 python %s MILESTONE_NUMBER
18 git commit -m "Update Skia milestone."
23 milestone = int(sys.argv[1])
25except (IndexError, ValueError, AssertionError):
26 sys.stderr.write(usage % (sys.argv[0], milestone_file))
30 * Copyright 2016 Google Inc.
32 * Use of this source code is governed by a BSD-style license that can be
33 * found in the LICENSE file.
36#define SK_MILESTONE %d
40os.chdir(os.path.join(os.path.dirname(__file__), os.pardir))
42with open(milestone_file,
'w')
as o:
43 o.write(text % milestone)
45with open(milestone_file,
'r')
as f:
46 sys.stdout.write(f.read())