Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 @echo off | |
| 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 | |
| 4 :: BSD-style license that can be found in the LICENSE file. | |
| 5 | |
| 6 :: Run pub.dart on the Dart VM. This script assumes the Dart SDK's directory | |
|
Emily Fortuna
2012/11/10 00:47:18
nit: any reason why we use :: for comments here bu
| |
| 7 :: structure. | |
| 8 | |
| 9 set SCRIPTPATH=%~dp0 | |
| 10 | |
| 11 :: Does the string have a trailing slash? If so, remove it. | |
| 12 if %SCRIPTPATH:~-1%==\ set SCRIPTPATH=%SCRIPTPATH:~0,-1% | |
| 13 | |
| 14 :: Set DART_SDK so pub can find SDK packages. | |
| 15 set DART_SDK=%SCRIPTPATH%\..\ | |
| 16 | |
| 17 "%SCRIPTPATH%\dart" "%SCRIPTPATH%\..\util\pub\pub.dart" %* | |
| OLD | NEW |