diff options
author | nulltoken <emeric.fermas@gmail.com> | 2011-06-13 15:58:33 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2011-06-13 16:53:21 +0400 |
commit | 7f862ab8f0cf37a55329ab9e2aaec1fb0be82fa7 (patch) | |
tree | c09d52add7300980d58ea77225fcbc48ea3f99ca | |
parent | cbcd51bb1932075ab5574020b8f0e57b9ca74de7 (diff) |
Tweak packaging script
- Make it cope with paths containing spaces
- Replace <authors/> with a NuGet token
-rw-r--r-- | LibGit2Sharp/Properties/AssemblyInfo.cs | 1 | ||||
-rw-r--r-- | nuget.package/LibGit2Sharp.nuspec | 2 | ||||
-rw-r--r-- | nuget.package/build.nuget.package.cmd | 8 |
3 files changed, 6 insertions, 5 deletions
diff --git a/LibGit2Sharp/Properties/AssemblyInfo.cs b/LibGit2Sharp/Properties/AssemblyInfo.cs index 3ef68095..c900de53 100644 --- a/LibGit2Sharp/Properties/AssemblyInfo.cs +++ b/LibGit2Sharp/Properties/AssemblyInfo.cs @@ -8,6 +8,7 @@ using System.Runtime.InteropServices; [assembly: AssemblyTitle("LibGit2Sharp")] [assembly: AssemblyDescription(".Net bindings for libgit2")] +[assembly: AssemblyCompany("LibGit2Sharp contributors")] #if DEBUG [assembly: AssemblyConfiguration("Debug")] diff --git a/nuget.package/LibGit2Sharp.nuspec b/nuget.package/LibGit2Sharp.nuspec index ccd98750..36c1dc9e 100644 --- a/nuget.package/LibGit2Sharp.nuspec +++ b/nuget.package/LibGit2Sharp.nuspec @@ -3,7 +3,7 @@ <metadata> <id>$id$</id> <version>$version$</version> - <authors>LibGit2Sharp contributors</authors> + <authors>$author$</authors> <owners>nulltoken</owners> <licenseUrl>https://github.com/libgit2/libgit2sharp/raw/master/LICENSE.md</licenseUrl> <projectUrl>https://github.com/libgit2/libgit2sharp/</projectUrl> diff --git a/nuget.package/build.nuget.package.cmd b/nuget.package/build.nuget.package.cmd index d34a6d15..f4a708d3 100644 --- a/nuget.package/build.nuget.package.cmd +++ b/nuget.package/build.nuget.package.cmd @@ -2,12 +2,12 @@ SET BASEDIR=%~dp0 SET SRCDIR=%BASEDIR%..\LibGit2Sharp\ REM the nuspec file needs to be next to the csproj, so copy it there during the pack operation -copy %BASEDIR%LibGit2Sharp.nuspec %SRCDIR% +copy "%BASEDIR%LibGit2Sharp.nuspec" "%SRCDIR%" -pushd %BASEDIR% +pushd "%BASEDIR%" -..\Lib\NuGet\NuGet.exe pack -sym %SRCDIR%LibGit2Sharp.csproj +..\Lib\NuGet\NuGet.exe pack -sym "%SRCDIR%LibGit2Sharp.csproj" popd -del %SRCDIR%LibGit2Sharp.nuspec +del "%SRCDIR%LibGit2Sharp.nuspec" |