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

Unified Diff: runtime/tools/concatenate_patches.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: runtime/tools/concatenate_patches.py
diff --git a/runtime/tools/concatenate_patches.py b/runtime/tools/concatenate_patches.py
new file mode 100644
index 0000000000000000000000000000000000000000..1653066c291a34b41655ad3f9831e0bbfee1b3bf
--- /dev/null
+++ b/runtime/tools/concatenate_patches.py
@@ -0,0 +1,30 @@
+#!/usr/bin/env python
+# Copyright (c) 2016, the Dart project authors. Please see the AUTHORS 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.
+
+from optparse import OptionParser
+
+def writePatch(output_file_name, input_file_names):
+ dart_file_names = filter(lambda name: name.endswith('.dart'),
+ input_file_names)
+ with open(output_file_name, 'w') as output_file:
+ for dart_file_name in dart_file_names:
+ with open(dart_file_name, 'r') as dart_file:
+ output_file.write(dart_file.read())
+
+
+def main():
+ parser = OptionParser()
+ parser.add_option('--output', action='store', type='string',
+ help='output file path')
+ (options, args) = parser.parse_args()
+ if not options.output:
+ parser.error('missing --output option\n')
+ if len(args) == 0:
+ parser.error('no input files given\n')
+ writePatch(options.output, args)
+
+
+if __name__ == '__main__':
+ main()
« no previous file with comments | « runtime/lib/uri_patch.dart ('k') | runtime/vm/BUILD.gn » ('j') | runtime/vm/BUILD.gn » ('J')

Powered by Google App Engine
This is Rietveld 408576698