| 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 This script provides the entry point for frog on Windows, without having to | 6 REM This script provides the entry point for frog on Windows, without having to |
| 7 REM explicitly call python frog.py. It is used on the buildbot and for any | 7 REM explicitly call python frog.py. It is used on the buildbot and for any |
| 8 REM Windows user of frog. | 8 REM Windows user of frog. |
| 9 | 9 |
| 10 REM Call frog using python. | 10 REM Call frog using python. |
| 11 | 11 |
| 12 set SCRIPTPATH=%~dp0 | 12 set SCRIPTPATH=%~dp0 |
| 13 | 13 |
| 14 REM Does the string have a trailing slash? If so, remove it. | 14 REM Does the string have a trailing slash? If so, remove it. |
| 15 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% | 15 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% |
| 16 | 16 |
| 17 REM Canonicalize the direction of the slashes. | 17 REM Canonicalize the direction of the slashes. |
| 18 set script=%* | 18 set script=%* |
| 19 set script=%script:\=/% | 19 set script=%script:\=/% |
| 20 | 20 |
| 21 python "%SCRIPTPATH%\frog" --no_colors "%script%" | 21 python %SCRIPTPATH%\frog %script% |
| OLD | NEW |