Permalink
Browse files

renamed license, added build script

  • Loading branch information...
1 parent 125f4a9 commit 3560ee146238c14f70f26b58ff2bfe44a63c326c @bvanderveen bvanderveen committed May 30, 2011
Showing with 73 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +13 −0 Kayak.nuspec
  3. 0 LICENSE.txt → LICENSE
  4. +58 −0 build.proj
View
@@ -5,3 +5,5 @@ obj
*.vsp
*.psess
*.suo
+.DS_Store
+build
View
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<package>
+ <metadata>
+ <id>Kayak</id>
+ <version>blank</version>
+ <authors>Benjamin van der Veen</authors>
+ <owners>Benjamin van der Veen</owners>
+ <description>Kayak is an event-driven networking library for .NET. It allows you to easily create TCP clients and servers. Kayak contains an HTTP/1.1 server implementation.</description>
+ <language>en-US</language>
+ <projectUrl>https://github.com/kayak/kayak</projectUrl>
+ <licenseUrl>https://github.com/kayak/kayak/raw/HEAD/LICENSE</licenseUrl>
+ </metadata>
+</package>
File renamed without changes.
View
@@ -0,0 +1,58 @@
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)'=='' ">Release</Configuration>
+ <OutputPath Condition=" '$(OutputPath)'=='' ">$(MSBuildProjectDirectory)\build\</OutputPath>
+ <ConfigurationOutputPath>$(OutputPath)\$(Configuration)\</ConfigurationOutputPath>
+ <CompileOutputPath>$(ConfigurationOutputPath)\out\</CompileOutputPath>
+ <NupkgPath>$(ConfigurationOutputPath)\nupkg\</NupkgPath>
+ <NupkgLibPath>$(NupkgPath)\lib\</NupkgLibPath>
+ <NupkgSpecName>Kayak.nuspec</NupkgSpecName>
+ </PropertyGroup>
+ <ItemGroup>
+ <Projects Include="$(MSBuildProjectDirectory)\Kayak\Kayak.csproj"/>
+ <Projects Include="$(MSBuildProjectDirectory)\Kayak.Tests\Kayak.Tests.csproj"/>
+ </ItemGroup>
+
+ <!-- all of this for recursively deleting a directory. still doesn't work on any directory that doesn't contain
+ files. what a load of crap. <\3 MSBuild. -->
+
+ <ItemGroup>
+ <!-- list all files under output path -->
+ <CleanFiles Include="$(OutputPath)\**\*"/>
+ </ItemGroup>
+ <ItemGroup>
+ <!-- list parent dirs of all files -->
+ <CleanDirectories Include="@(CleanFiles->'%(RelativeDir)')"/>
+ </ItemGroup>
+ <Target Name="RemoveDuplicateCleanDirectories">
+ <!-- remove duplicates (happens when dir contains more than one file) -->
+ <RemoveDuplicates Inputs="@(CleanDirectories)">
+ <Output TaskParameter="Filtered" ItemName="FilteredCleanDirectories"/>
+ </RemoveDuplicates>
+ </Target>
+
+ <Target Name="Clean" DependsOnTargets="RemoveDuplicateCleanDirectories">
+ <Delete Files="@(CleanFiles)"/>
+ <RemoveDir Directories="@(FilteredCleanDirectories)"/>
+ <RemoveDir Directories="$(OutputPath)" Condition="Exists('$(OutputPath)')"/>
+ </Target>
+
+ <Target Name="Build">
+ <MakeDir Directories="$(CompileOutputPath)"/>
+ <MSBuild Projects="@(Projects)" Properties="OutputPath=$(CompileOutputPath)" />
+ </Target>
+
+ <Target Name="DistNuget" DependsOnTargets="Build">
+ <MakeDir Directories="$(NupkgLibPath)"/>
+ <Copy SourceFiles="$(CompileOutputPath)\Kayak.dll" DestinationFolder="$(NupkgLibPath)"/>
+ <Copy SourceFiles="$(NupkgSpecName)" DestinationFolder="$(NupkgPath)"/>
+ <GetAssemblyIdentity AssemblyFiles="$(CompileOutputPath)\Kayak.dll">
+ <Output TaskParameter="Assemblies" ItemName="AssemblyInfo" />
+ </GetAssemblyIdentity>
+ <XmlPoke
+ XmlInputPath="$(NupkgPath)\$(NupkgSpecName)"
+ Query="//version"
+ Value="%(AssemblyInfo.Version)"/>
+ <Exec WorkingDirectory="$(NupkgPath)" Command="nuget pack $(NupkgSpecName)"/>
+ </Target>
+</Project>

0 comments on commit 3560ee1

Please sign in to comment.