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

Unified Diff: packages/initialize/tool/rename_build_outputs.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 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
« no previous file with comments | « packages/initialize/tool/all_tests.sh ('k') | packages/intl/.gitignore » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/initialize/tool/rename_build_outputs.dart
diff --git a/packages/initialize/tool/rename_build_outputs.dart b/packages/initialize/tool/rename_build_outputs.dart
new file mode 100644
index 0000000000000000000000000000000000000000..56b74945d94234c058cb28f734ace5ede32f8fe8
--- /dev/null
+++ b/packages/initialize/tool/rename_build_outputs.dart
@@ -0,0 +1,21 @@
+library initialize.tool.rename_build_outputs;
+
+import 'dart:io';
+
+import 'package:path/path.dart';
+
+main() {
+ var scriptPath = Platform.script.path;
+ if (context.style.name == 'windows') scriptPath = scriptPath.substring(1);
+ var dir = join(dirname(dirname(scriptPath)), 'build', 'test');
+ for (var file in new Directory(dir).listSync()) {
+ var filepath = file.path;
+ var name = basename(filepath);
+ if (name.endsWith('.initialize.dart')) {
+ var newPath = join(dirname(filepath),
+ name.replaceFirst('.initialize.dart', '.initialize_test.dart'));
+ print('Copying $filepath to $newPath');
+ new File(filepath).copySync(newPath);
+ }
+ }
+}
« no previous file with comments | « packages/initialize/tool/all_tests.sh ('k') | packages/intl/.gitignore » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698