OLD | NEW |
1 @echo off | 1 @echo off |
2 :: Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 :: Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
3 :: for details. All rights reserved. Use of this source code is governed by a | 3 :: for details. All rights reserved. Use of this source code is governed by a |
4 :: BSD-style license that can be found in the LICENSE file. | 4 :: BSD-style license that can be found in the LICENSE file. |
5 | 5 |
6 :: Run pub.dart on the Dart VM. This script assumes the Dart SDK's directory | 6 :: Run pub.dart on the Dart VM. This script assumes the Dart SDK's directory |
7 :: structure. | 7 :: structure. |
8 | 8 |
9 set SCRIPTPATH=%~dp0 | 9 set SCRIPTPATH=%~dp0 |
10 | 10 |
11 :: Does the string have a trailing slash? If so, remove it. | 11 :: Does the string have a trailing slash? If so, remove it. |
12 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% | 12 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% |
13 | 13 |
14 :: The trailing forward slash in --package-root is required because of issue | 14 :: The trailing forward slash in --package-root is required because of issue |
15 :: 9499. | 15 :: 9499. |
16 "%SCRIPTPATH%\dart.exe" --package-root="%SCRIPTPATH%\..\packages/" "%SCRIPTPATH%
\..\lib\_internal\pub\bin\pub.dart" %* | 16 "%SCRIPTPATH%\dart.exe" "%SCRIPTPATH%\..\bin\snapshots\pub.dart.snapshot" %* |
OLD | NEW |