Skip to content

Commit

Permalink
fixed build script brain fart.
Browse files Browse the repository at this point in the history
  • Loading branch information
mccalltd committed Feb 18, 2013
1 parent 8268dc9 commit 0d8e6ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions default.ps1
Expand Up @@ -51,7 +51,7 @@ Task Test {

Task NugetPack {
Clean-Directory $nupkg_dir
Get-ChildItem "$nuspec_dir\*" -Include "*.nuspec" -Exclude "AttributeRouting.Shared.nuspec" -Recurse | foreach { Create-Nupkg $_ }
Get-ChildItem "$nuspec_dir\*" -Include "*.nutrans" -Recurse | foreach { Create-Nupkg $_ }
}

Task NugetPush {
Expand All @@ -69,8 +69,8 @@ function Clean-Directory ($dir) {
New-Item $dir -ItemType Directory | Out-Null
}

function Create-Nupkg ($nuspec_path) {
$name = [System.IO.Path]::GetFileNameWithoutExtension($nuspec_path)
function Create-Nupkg ($nutrans_path) {
$name = [System.IO.Path]::GetFileNameWithoutExtension($nutrans_path)
$nuspec = Create-Nuspec $name
Write-Host "Creating nupkg for $name" -ForegroundColor Green
Exec { &$nuget pack $nuspec -Version $version -OutputDirectory $nupkg_dir }
Expand Down

0 comments on commit 0d8e6ed

Please sign in to comment.