| OLD | NEW |
| 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 import 'dart:async'; | 5 import 'dart:async'; |
| 6 import 'dart:convert'; | 6 import 'dart:convert'; |
| 7 import 'dart:math'; | 7 import 'dart:math'; |
| 8 import 'dart:io'; | 8 import 'dart:io'; |
| 9 | 9 |
| 10 import 'standard_deviation.dart'; | 10 import 'standard_deviation.dart'; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 exit(1); | 26 exit(1); |
| 27 } | 27 } |
| 28 | 28 |
| 29 // The root of this Dart SDK repo "A" | 29 // The root of this Dart SDK repo "A" |
| 30 Uri aRoot = Platform.script.resolve('../../../..'); | 30 Uri aRoot = Platform.script.resolve('../../../..'); |
| 31 | 31 |
| 32 // The root of the other Dart SDK repo "B" | 32 // The root of the other Dart SDK repo "B" |
| 33 Uri bRoot = new Uri.directory(bRootPath); | 33 Uri bRoot = new Uri.directory(bRootPath); |
| 34 | 34 |
| 35 // Sanity check | 35 // Sanity check |
| 36 String relPath = 'pkg/front_end/tool/fasta/compile.dart'; | 36 String relPath = 'pkg/front_end/tool/_fasta/compile.dart'; |
| 37 Uri aCompile = aRoot.resolve(relPath); | 37 Uri aCompile = aRoot.resolve(relPath); |
| 38 if (!new File(aCompile.toFilePath()).existsSync()) { | 38 if (!new File(aCompile.toFilePath()).existsSync()) { |
| 39 print('Failed to find $aCompile'); | 39 print('Failed to find $aCompile'); |
| 40 exit(1); | 40 exit(1); |
| 41 } | 41 } |
| 42 Uri bCompile = bRoot.resolve(relPath); | 42 Uri bCompile = bRoot.resolve(relPath); |
| 43 if (!new File(bCompile.toFilePath()).existsSync()) { | 43 if (!new File(bCompile.toFilePath()).existsSync()) { |
| 44 print('Failed to find $bCompile'); | 44 print('Failed to find $bCompile'); |
| 45 exit(1); | 45 exit(1); |
| 46 } | 46 } |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 }, onError: (e) { | 190 }, onError: (e) { |
| 191 print('Error: $e'); | 191 print('Error: $e'); |
| 192 stdOutSubscription.cancel(); | 192 stdOutSubscription.cancel(); |
| 193 }); | 193 }); |
| 194 int code = await process.exitCode; | 194 int code = await process.exitCode; |
| 195 if (code != 0) { | 195 if (code != 0) { |
| 196 throw 'fail: $code'; | 196 throw 'fail: $code'; |
| 197 } | 197 } |
| 198 print(''); | 198 print(''); |
| 199 } | 199 } |
| OLD | NEW |