Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: utils/pub/sdk/pub.bat

Issue 11027049: Pass in DART_SDK from batch file on Windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 @echo off 1 @echo off
2 REM 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 REM 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 REM 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 REM 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 REM structure. 7 :: structure.
8 8
9 set SCRIPTPATH=%~dp0 9 set SCRIPTPATH=%~dp0
10 10
11 REM 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 REM Canonicalize the direction of the slashes. 14 :: Set DART_SDK so pub can find SDK packages.
15 set script=%* 15 set DART_SDK=%SCRIPTPATH%\..\
16 set script=%script:\=/%
17 16
18 "%SCRIPTPATH%\dart.exe" "%SCRIPTPATH%\..\util\pub\pub.dart" %script% 17 "%SCRIPTPATH%\dart.exe" "%SCRIPTPATH%\..\util\pub\pub.dart" %*
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698