| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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:io'); | 5 #import('dart:io'); |
| 6 #import('dart:uri'); | 6 #import('dart:uri'); |
| 7 | 7 |
| 8 #import('../../lib/compiler/implementation/util/uri_extras.dart'); | 8 #import('../../lib/compiler/implementation/util/uri_extras.dart'); |
| 9 #import('../../lib/compiler/implementation/filenames.dart'); | 9 #import('../../lib/compiler/implementation/filenames.dart'); |
| 10 | 10 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 102 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 103 # for details. All rights reserved. Use of this source code is governed by a | 103 # for details. All rights reserved. Use of this source code is governed by a |
| 104 # BSD-style license that can be found in the LICENSE file. | 104 # BSD-style license that can be found in the LICENSE file. |
| 105 | 105 |
| 106 BIN_DIR=`dirname \$0` | 106 BIN_DIR=`dirname \$0` |
| 107 unset COLORS | 107 unset COLORS |
| 108 if test -t 1; then | 108 if test -t 1; then |
| 109 # Stdout is a terminal. | 109 # Stdout is a terminal. |
| 110 if test 8 -le `tput colors`; then | 110 if test 8 -le `tput colors`; then |
| 111 # Stdout has at least 8 colors, so enable colors. | 111 # Stdout has at least 8 colors, so enable colors. |
| 112 COLORS="--colors" | 112 COLORS="--enable-diagnostic-colors" |
| 113 fi | 113 fi |
| 114 fi | 114 fi |
| 115 exec \$BIN_DIR/dart$options \$BIN_DIR/$path \$COLORS "\$@" | 115 exec \$BIN_DIR/dart$options \$BIN_DIR/$path \$COLORS "\$@" |
| 116 ''', | 116 ''', |
| 117 ''' | 117 ''' |
| 118 @echo off | 118 @echo off |
| 119 REM Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 119 REM Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 120 REM for details. All rights reserved. Use of this source code is governed by a | 120 REM for details. All rights reserved. Use of this source code is governed by a |
| 121 REM BSD-style license that can be found in the LICENSE file. | 121 REM BSD-style license that can be found in the LICENSE file. |
| 122 | 122 |
| 123 set SCRIPTPATH=%~dp0 | 123 set SCRIPTPATH=%~dp0 |
| 124 | 124 |
| 125 REM Does the path have a trailing slash? If so, remove it. | 125 REM Does the path have a trailing slash? If so, remove it. |
| 126 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% | 126 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% |
| 127 | 127 |
| 128 set arguments=%* | 128 set arguments=%* |
| 129 | 129 |
| 130 "%SCRIPTPATH%\dart.exe"$options "%SCRIPTPATH%$pathWin" %arguments% | 130 "%SCRIPTPATH%\dart.exe"$options "%SCRIPTPATH%$pathWin" %arguments% |
| 131 '''.replaceAll('\n', '\r\n')]; | 131 '''.replaceAll('\n', '\r\n')]; |
| 132 } | 132 } |
| OLD | NEW |