Skip to content

Commit

Permalink
Merge pull request #424 from prikkeldraad/master
Browse files Browse the repository at this point in the history
#413 quotations added for paths which include spaces
  • Loading branch information
dlwyatt committed Dec 8, 2015
2 parents 6d5c7d7 + 117884d commit 7113b4b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ if '%1'=='-help' goto help
if '%1'=='help' goto help
if '%1'=='-h' goto help

%~dp0vendor\tools\nuget.exe Install %~dp0vendor\packages.config -o %~dp0vendor\packages
powershell -NoProfile -ExecutionPolicy Bypass -Command ^
"$psakeDir = ([array](dir %~dp0Vendor\packages\psake.*))[-1]; .$psakeDir\tools\psake.ps1 build.psake.ps1 %* -ScriptPath $psakeDir\tools ; if ($psake.build_success -eq $false) { exit 1 } else { exit 0 }"
"%~dp0vendor\tools\NuGet.exe" install "%~dp0vendor\packages.config" -o "%~dp0vendor\packages"
@SET cmd=$psakeDir = ([array](dir """%~dp0vendor\packages\psake.*"""))[-1]; ".$psakeDir\tools\psake.ps1" build.psake.ps1 %* -ScriptPath "$psakeDir\tools" ; if ($psake.build_success -eq $false) { exit 1 } else { exit 0 }
powershell -NoProfile -ExecutionPolicy Bypass -Command ^ "%cmd%"
goto :eof

:help
powershell -NoProfile -ExecutionPolicy Bypass -Command ^
"$psakeDir = ([array](dir %~dp0Vendor\packages\psake.*))[-1]; .$psakeDir\tools\psake.ps1 build.psake.ps1 -docs -ScriptPath $psakeDir\tools"
@SET cmd=$psakeDir = ([array](dir """%~dp0vendor\packages\psake.*"""))[-1]; ".$psakeDir\tools\psake.ps1 build.psake.ps1" -docs -ScriptPath "$psakeDir\tools"
powershell -NoProfile -ExecutionPolicy Bypass -Command ^ "%cmd%"

0 comments on commit 7113b4b

Please sign in to comment.