| OLD | NEW |
| 1 @echo off | 1 @echo off |
| 2 REM Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 REM Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3 REM for details. All rights reserved. Use of this source code is governed by a | 3 REM for details. All rights reserved. Use of this source code is governed by a |
| 4 REM BSD-style license that can be found in the LICENSE file. | 4 REM BSD-style license that can be found in the LICENSE file. |
| 5 | 5 |
| 6 REM Run frogc.dart on the Dart VM with its libdir set correctly. | 6 REM Run frogc.dart on the Dart VM with its libdir set correctly. |
| 7 | 7 |
| 8 set SCRIPTPATH=%~dp0 | 8 set SCRIPTPATH=%~dp0 |
| 9 | 9 |
| 10 REM Does the string have a trailing slash? If so, remove it. | 10 REM Does the string have a trailing slash? If so, remove it. |
| 11 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% | 11 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% |
| 12 set LIBPATH=%SCRIPTPATH%\..\lib | 12 set LIBPATH=%SCRIPTPATH%\..\lib |
| 13 | 13 |
| 14 REM Canonicalize the direction of the slashes. | 14 REM Canonicalize the direction of the slashes. |
| 15 set script=%* | 15 set script=%* |
| 16 set script=%script:\=/% | 16 set script=%script:\=/% |
| 17 | 17 |
| 18 "%SCRIPTPATH%\dart.exe" --new_gen_heap_size=128 "%SCRIPTPATH%\frogc.dart" --no_c
olors --libdir="%LIBPATH%" "%script%" | 18 "%SCRIPTPATH%\dart.exe" --new_gen_heap_size=128 "%SCRIPTPATH%\frogc.dart" --no_c
olors --libdir="%LIBPATH%" %script% |
| OLD | NEW |