Welcome to mirror list, hosted at ThFree Co, Russian Federation.

build.nuget.package.cmd « nuget.package - github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e36c3f156a96b0d62a5b31b1efe05fc396f933a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
SETLOCAL
SET BASEDIR=%~dp0
SET SRCDIR=%BASEDIR%..\LibGit2Sharp\
SET CommitSha=%~1

REM the nuspec file needs to be next to the csproj, so copy it there during the pack operation
COPY "%BASEDIR%LibGit2Sharp.nuspec" "%SRCDIR%"

PUSHD "%BASEDIR%"

DEL *.nupkg

CMD /c "..\build.libgit2sharp.cmd %CommitSha%"

IF %ERRORLEVEL% NEQ 0 GOTO EXIT

"..\Lib\NuGet\NuGet.exe" Pack -Symbols "%SRCDIR%LibGit2Sharp.csproj" -Prop Configuration=Release

:EXIT
DEL "%SRCDIR%LibGit2Sharp.nuspec"

ENDLOCAL
POPD

PAUSE
EXIT /B %ERRORLEVEL%