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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « packages/initialize/tool/all_tests.sh ('k') | packages/intl/.gitignore » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 library initialize.tool.rename_build_outputs;
2
3 import 'dart:io';
4
5 import 'package:path/path.dart';
6
7 main() {
8 var scriptPath = Platform.script.path;
9 if (context.style.name == 'windows') scriptPath = scriptPath.substring(1);
10 var dir = join(dirname(dirname(scriptPath)), 'build', 'test');
11 for (var file in new Directory(dir).listSync()) {
12 var filepath = file.path;
13 var name = basename(filepath);
14 if (name.endsWith('.initialize.dart')) {
15 var newPath = join(dirname(filepath),
16 name.replaceFirst('.initialize.dart', '.initialize_test.dart'));
17 print('Copying $filepath to $newPath');
18 new File(filepath).copySync(newPath);
19 }
20 }
21 }
OLDNEW
« 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