mirror of
https://github.com/dart-lang/sdk
synced 2024-09-21 11:27:47 +00:00
497b78917d
BUG= R=rmacnak@google.com, vsm@google.com Review URL: https://codereview.chromium.org//169183004 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@32907 260f80e4-7a28-3924-810f-c04153c831b5
30 lines
836 B
Python
Executable file
30 lines
836 B
Python
Executable file
#!/usr/bin/env python
|
|
#
|
|
# Copyright (c) 2014 The Chromium Authors. All rights reserved.
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
# found in the LICENSE file.
|
|
|
|
"""Writes a revision number into src/chrome/tools/test/reference_build/REVISON
|
|
Must be run from the root of a Dartium or multivm checkout.
|
|
|
|
Usage:
|
|
$ ./src/dart/tools/bots/set_reference_build_revision.py <revision>
|
|
"""
|
|
|
|
import os
|
|
import sys
|
|
|
|
def main(argv):
|
|
revision = argv[1]
|
|
output = os.path.join('src', 'chrome', 'tools',
|
|
'test', 'reference_build',
|
|
'REQUESTED_REVISION')
|
|
dirname = os.path.dirname(output)
|
|
if dirname and not os.path.exists(dirname):
|
|
os.makedirs(dirname)
|
|
with file(output, 'w') as f:
|
|
f.write(revision)
|
|
|
|
if __name__ == '__main__':
|
|
sys.exit(main(sys.argv))
|