Skip to content

Commit

Permalink
-Build
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesNK committed Aug 3, 2014
1 parent dd07fdf commit 73a2662
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Build/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,13 @@ task Package -depends Build {
Copy-Item -Path $docDir\readme.txt -Destination $workingDir\Package\
Copy-Item -Path $docDir\license.txt -Destination $workingDir\Package\

robocopy $sourceDir $workingDir\Package\Source\Src /MIR /NP /XD .svn bin obj TestResults AppPackages /XF *.suo *.user | Out-Default
robocopy $buildDir $workingDir\Package\Source\Build /MIR /NP /XD .svn /XF runbuild.txt | Out-Default
robocopy $docDir $workingDir\Package\Source\Doc /MIR /NP /XD .svn | Out-Default
robocopy $toolsDir $workingDir\Package\Source\Tools /MIR /NP /XD .svn | Out-Default
# exclude package directories but keep packages\repositories.config
$packageDirs = gci $sourceDir\packages | where {$_.PsIsContainer} | Select -ExpandProperty Name

robocopy $sourceDir $workingDir\Package\Source\Src /MIR /NP /XD bin obj TestResults AppPackages $packageDirs /XF *.suo *.user | Out-Default
robocopy $buildDir $workingDir\Package\Source\Build /MIR /NP /XF runbuild.txt | Out-Default
robocopy $docDir $workingDir\Package\Source\Doc /MIR /NP | Out-Default
robocopy $toolsDir $workingDir\Package\Source\Tools /MIR /NP | Out-Default

exec { .\Tools\7-zip\7za.exe a -tzip $workingDir\$zipFileName $workingDir\Package\* | Out-Default } "Error zipping"
}
Expand Down

0 comments on commit 73a2662

Please sign in to comment.