Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #!/usr/bin/env python | |
| 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | |
|
zra
2016/10/25 07:06:35
2016?
Vyacheslav Egorov (Google)
2016/10/26 10:45:17
Killed this file
| |
| 3 # for details. All rights reserved. Use of this source code is governed by a | |
| 4 # BSD-style license that can be found in the LICENSE file. | |
| 5 | |
| 6 import os | |
| 7 import subprocess | |
| 8 import sys | |
| 9 import utils | |
| 10 | |
| 11 def die(msg): | |
| 12 print msg | |
| 13 sys.exit(1) | |
| 14 | |
| 15 def main(): | |
| 16 if len(sys.argv) != 2: | |
| 17 die("Usage: %s <directory>" % sys.argv[0]) | |
| 18 | |
| 19 directory = os.path.abspath(sys.argv[1]) | |
| 20 | |
| 21 if not os.path.isdir(directory): | |
| 22 die("Directory '%s' does not exist!" % directory) | |
| 23 | |
| 24 pub = os.path.join(utils.CheckedInSdkPath(), 'bin', 'pub') | |
| 25 subprocess.check_call([pub, 'get'], cwd=directory); | |
| 26 | |
| 27 if __name__ == '__main__': | |
| 28 main() | |
| OLD | NEW |