Browse files

adding a push command to handle the sheer number of packages.

  • Loading branch information...
1 parent f0278d4 commit fe38c17dca2e4ebece1e9f350abd54b18a0f4b35 @ferventcoder committed Dec 20, 2012
Showing with 21 additions and 0 deletions.
  1. +5 −0 push.cmd
  2. +16 −0 push.ps1
View
5 push.cmd
@@ -0,0 +1,5 @@
+@echo off
+
+SET DIR=%~dp0%
+
+@PowerShell -NoProfile -ExecutionPolicy unrestricted -Command "& '%DIR%push.ps1' %*;"
View
16 push.ps1
@@ -0,0 +1,16 @@
+$localDir = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
+
+[string]$version = Get-Content "$localDir\VERSION"
+
+$nugetExe = Join-Path $localDir 'lib\nuget\nuget.exe'
+Write-Host "Using `'$nugetExe`' to push packages"
+
+& $nugetExe push "bin\this.Log.$($version).nupkg"
+& $nugetExe push "bin\this.Log-log4net.$($version).nupkg"
+& $nugetExe push "bin\this.Log-log4net.Sample.$($version).nupkg"
+& $nugetExe push "bin\this.Log-log4net.VB.Sample.$($version).nupkg"
+& $nugetExe push "bin\this.Log-NLog.$($version).nupkg"
+& $nugetExe push "bin\this.Log-NLog.Sample.$($version).nupkg"
+& $nugetExe push "bin\this.Log-NLog.VB.Sample.$($version).nupkg"
+& $nugetExe push "bin\this.Log-Moq.$($version).nupkg"
+& $nugetExe push "bin\this.Log-RhinoMocks.$($version).nupkg"

0 comments on commit fe38c17

Please sign in to comment.