Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 68d2a7f6ba
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (18 sloc) 0.569 kb
@echo on
:: Assumes robocopy on the path
SET DIR=%~dp0%
SET DESTDIR=%DIR%bin
IF EXIST %DESTDIR% goto deletebin
goto prepare
:deletebin
rmdir /s /q %DESTDIR%
if %ERRORLEVEL% NEQ 0 goto errors
:prepare
robocopy %DIR% %DESTDIR%\tools /E /B /NP /R:0 /W:0 /NJH /NJS /NS /NFL /NDL /XF ".git*" "Nuget*" "*.nupkg" /XD "%DIR%nuget" "%DIR%.git" "%DIR%bin"
robocopy %DIR%nuget %DESTDIR% /E /B /NP /R:0 /W:0 /NJH /NJS /NS /NFL /NDL
:build
nuget pack %DESTDIR%\psake.nuspec
if %ERRORLEVEL% NEQ 0 goto errors
goto :eof
:errors
EXIT /B %ERRORLEVEL%
Jump to Line
Something went wrong with that request. Please try again.