Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: tools/dartium/get_chromium_build.py

Issue 244643006: Migrate dartium_tools from chrome branch to dart repo (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2014 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2014 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Gets a Chromium archived build, and unpacks it 7 """Gets a Chromium archived build, and unpacks it
8 into a target directory. 8 into a target directory.
9 9
10 Use -r option to specify the revison number 10 Use -r option to specify the revison number
11 Use -t option to specify the directory to unzip the build into. 11 Use -t option to specify the directory to unzip the build into.
12 12
13 Usage: 13 Usage:
14 $ get_chromium_build.py -r <revision> -t <target> 14 $ /path/to/get_chromium_build.py -r <revision> -t <target>
15 """ 15 """
16 16
17 import logging 17 import logging
18 import optparse 18 import optparse
19 import os 19 import os
20 import platform 20 import platform
21 import shutil 21 import shutil
22 import subprocess 22 import subprocess
23 import sys 23 import sys
24 import time 24 import time
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 162
163 def main(argv): 163 def main(argv):
164 logging.getLogger().setLevel(logging.DEBUG) 164 logging.getLogger().setLevel(logging.DEBUG)
165 options = ParseOptions(argv) 165 options = ParseOptions(argv)
166 b = BuildUpdater(options) 166 b = BuildUpdater(options)
167 b.DownloadAndUpdateBuild() 167 b.DownloadAndUpdateBuild()
168 logging.info('Successfully got archived Chromium build.') 168 logging.info('Successfully got archived Chromium build.')
169 169
170 if __name__ == '__main__': 170 if __name__ == '__main__':
171 sys.exit(main(sys.argv)) 171 sys.exit(main(sys.argv))
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698