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

Unified Diff: tools/run_pub_get.py

Issue 2434123003: Merge more Kernel infrastructure from kernel_sdk SDK fork. (Closed)
Patch Set: address more comments Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: tools/run_pub_get.py
diff --git a/tools/run_pub_get.py b/tools/run_pub_get.py
new file mode 100644
index 0000000000000000000000000000000000000000..7bf160057e0b920f9102ead9f32326bb9c1a14e0
--- /dev/null
+++ b/tools/run_pub_get.py
@@ -0,0 +1,28 @@
+#!/usr/bin/env python
+# 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
+# for details. All rights reserved. Use of this source code is governed by a
+# BSD-style license that can be found in the LICENSE file.
+
+import os
+import subprocess
+import sys
+import utils
+
+def die(msg):
+ print msg
+ sys.exit(1)
+
+def main():
+ if len(sys.argv) != 2:
+ die("Usage: %s <directory>" % sys.argv[0])
+
+ directory = os.path.abspath(sys.argv[1])
+
+ if not os.path.isdir(directory):
+ die("Directory '%s' does not exist!" % directory)
+
+ pub = os.path.join(utils.CheckedInSdkPath(), 'bin', 'pub')
+ subprocess.check_call([pub, 'get'], cwd=directory);
+
+if __name__ == '__main__':
+ main()

Powered by Google App Engine
This is Rietveld 408576698