Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
qinezh committed Jan 13, 2017
1 parent f93fcec commit d5e049d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 14 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,7 @@ target/
/**/_site/
.vscode/
.vs/
src/nuspec/docfx.console/tools/
src/nuspec/AzureMarkdownRewriterTool/tools/
src/nuspec/DfmHttpService/tools/

PACK/

###############
# temp file #
Expand Down
25 changes: 19 additions & 6 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,27 @@ function NugetPack {
}

function PackSelfContainProject {
param($sourceFolder, $nuspecPath)
$targetFolder = (Get-Item $nuspecPath).Directory.FullName
param($assemblyFolder, $nuspecPath)

$nuspecFile = Get-Item $nuspecPath
$nuspecName = $nuspecFile.Name
$nuspecFolder = $nuspecFile.Directory.FullName
$nuspecFolderName = $nuspecFile.Directory.Name
$targetFolder = "PACK\$nuspecFolderName"

if (Test-Path $targetFolder)
{
$null = Remove-Item $targetFolder -Force -Recurse
}
$null = New-Item -ItemType Directory -Force -Path $targetFolder
$null = New-Item -ItemType Directory -Force -Path "$targetFolder\tools\"
Copy-Item -Path "$sourceFolder\*.dll" -Destination "$targetFolder\tools\"
Copy-Item -Path "$sourceFolder\*.exe" -Destination "$targetFolder\tools\"
Copy-Item -Path "$sourceFolder\*.exe.config" -Destination "$targetFolder\tools\"

& $nuget pack $nuspecPath -Version $version -OutputDirectory artifacts\$configuration
Copy-Item -Path "$nuspecFolder\**" -Destination "$targetFolder" -Force -Recurse
Copy-Item -Path "$assemblyFolder\*.dll" -Destination "$targetFolder\tools\" -Force
Copy-Item -Path "$assemblyFolder\*.exe" -Destination "$targetFolder\tools\" -Force
Copy-Item -Path "$assemblyFolder\*.exe.config" -Destination "$targetFolder\tools\" -Force

& $nuget pack "$targetFolder\$nuspecName" -Version $version -OutputDirectory artifacts\$configuration
ProcessLastExitCode $lastexitcode "nuget pack error while packing $nuspecPath"
}

Expand Down
7 changes: 3 additions & 4 deletions src/nuspec/DfmHttpService/DfmHttpService.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
<owners>Microsoft</owners>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<licenseUrl>https://github.com/dotnet/docfx/blob/dev/LICENSE</licenseUrl>
<projectUrl>https://github.com/dotnet/docfx</projectUrl>
<description>This is a tool to generate API documentation for .NET projects.</description>
<releaseNotes>Support generating both CSHARP and VB projects.</releaseNotes>
<projectUrl>https://github.com/dotnet/docfx/tools/DfmHttpService</projectUrl>
<description>HTTP Server Wrapper for DocFX Favorable Markdown.</description>
<copyright>Copyright 2015-2016</copyright>
<tags>Documentation API Metadata docascode docfx</tags>
<tags>DFM markdown docascode docfx</tags>
</metadata>
<files>
<file src="tools/**" target=""/>
Expand Down

0 comments on commit d5e049d

Please sign in to comment.