| 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 options = ' --heap_growth_rate=32$options'; | 96 options = ' --heap_growth_rate=32$options'; |
| 97 | 97 |
| 98 return [ | 98 return [ |
| 99 ''' | 99 ''' |
| 100 #!/bin/sh | 100 #!/bin/sh |
| 101 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 101 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 102 # for details. All rights reserved. Use of this source code is governed by a | 102 # for details. All rights reserved. Use of this source code is governed by a |
| 103 # BSD-style license that can be found in the LICENSE file. | 103 # BSD-style license that can be found in the LICENSE file. |
| 104 | 104 |
| 105 BIN_DIR=`dirname \$0` | 105 BIN_DIR=`dirname \$0` |
| 106 exec \$BIN_DIR/dart$options \$BIN_DIR/$path "\$@" | 106 NO_COLORS="--no-colors" |
| 107 if test -t 1; then |
| 108 # Enable colors if stdout is a terminal. |
| 109 unset NO_COLORS |
| 110 fi |
| 111 exec \$BIN_DIR/dart$options \$BIN_DIR/$path \$NO_COLORS "\$@" |
| 107 ''', | 112 ''', |
| 108 ''' | 113 ''' |
| 109 @echo off | 114 @echo off |
| 110 REM Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 115 REM Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 111 REM for details. All rights reserved. Use of this source code is governed by a | 116 REM for details. All rights reserved. Use of this source code is governed by a |
| 112 REM BSD-style license that can be found in the LICENSE file. | 117 REM BSD-style license that can be found in the LICENSE file. |
| 113 | 118 |
| 114 set SCRIPTPATH=%~dp0 | 119 set SCRIPTPATH=%~dp0 |
| 115 | 120 |
| 116 REM Does the path have a trailing slash? If so, remove it. | 121 REM Does the path have a trailing slash? If so, remove it. |
| 117 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% | 122 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% |
| 118 | 123 |
| 119 set arguments=%* | 124 set arguments=%* |
| 120 | 125 |
| 121 "%SCRIPTPATH%\dart.exe"$options "%SCRIPTPATH%$pathWin" %arguments% | 126 "%SCRIPTPATH%\dart.exe"$options "%SCRIPTPATH%$pathWin" --no-colors %arguments% |
| 122 '''.replaceAll('\n', '\r\n')]; | 127 '''.replaceAll('\n', '\r\n')]; |
| 123 } | 128 } |
| OLD | NEW |