| # Copyright 2016 Google Inc. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| milestone_file = 'include/core/SkMilestone.h' |
| git checkout -b change_milestone origin/master |
| python %s MILESTONE_NUMBER |
| git commit -m "Update Skia milestone." |
| milestone = int(sys.argv[1]) |
| except (IndexError, ValueError, AssertionError): |
| sys.stderr.write(usage % (sys.argv[0], milestone_file)) |
| * Copyright 2016 Google Inc. |
| * Use of this source code is governed by a BSD-style license that can be |
| * found in the LICENSE file. |
| 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()) |