Index: sdk/bin/pub_developer.bat |
diff --git a/sdk/bin/pub_developer.bat b/sdk/bin/pub_developer.bat |
index 6f0d4e0637ca97ed867c3fed202ebe6851872e3c..9c77b790c8cf2b4cad8767c5b027e151ee48b472 100644 |
--- a/sdk/bin/pub_developer.bat |
+++ b/sdk/bin/pub_developer.bat |
@@ -18,16 +18,16 @@ rem Remove trailing backslash if there is one |
IF %SDK_DIR:~-1%==\ set SDK_DIR=%SDK_DIR:~0,-1% |
set PUB=%SDK_DIR%\lib\_internal\pub\bin\pub.dart |
-set BUILD_DIR=%SDK_DIR%\..\build\ReleaseIA32 |
-set PACKAGES_DIR=%BUILD_DIR%\packages\ |
set DART=%BIN_DIR%\dart |
-set DART_IN_BUILT_SDK=%BUILD_DIR%\dart-sdk\bin\dart |
set SNAPSHOT=%BIN_DIR%\snapshots\pub.dart.snapshot |
+set BUILD_DIR=%SDK_DIR%\..\build\ReleaseIA32 |
+set PACKAGES_DIR=%BUILD_DIR%\packages |
+set DART_IN_BUILT_SDK=%BUILD_DIR%\dart-sdk\bin\dart |
if exist "%SNAPSHOT%" ( |
"%DART%" --checked "%SNAPSHOT%" %* |
) else ( |
- "%DART_IN_BUILT_SDK%" --checked --package-root=%PACKAGES_DIR% "%PUB%" %* |
+ "%DART_IN_BUILT_SDK%" --checked --package-root="%PACKAGES_DIR%" "%PUB%" %* |
) |
endlocal |
@@ -38,8 +38,8 @@ exit /b %errorlevel% |
setlocal |
for %%i in (%1) do set result=%%~fi |
set current= |
-for /f "tokens=2 delims=[]" %%i in ('dir /a:l ^"%~dp1^" 2^>nul ^ |
- ^| find "> %~n1 ["') do ( |
+for /f "usebackq tokens=2 delims=[]" %%i in (`dir /a:l "%~dp1" 2^>nul ^ |
+ ^| find "> %~n1 ["`) do ( |
set current=%%i |
) |
if not "%current%"=="" call :follow_links "%current%", result |