From be0b0055f1e5c2b54988aa9131c02f5b54b27ad0 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 15 Feb 2013 17:59:20 -0600 Subject: [PATCH] Rename package for handling --- rename.ps1 | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 rename.ps1 diff --git a/rename.ps1 b/rename.ps1 new file mode 100644 index 000000000..0c867b0c7 --- /dev/null +++ b/rename.ps1 @@ -0,0 +1,17 @@ +Param( + [Parameter(Mandatory=$true, Position=0, HelpMessage="A branch name is #requires required")] + [string]$branch, + [Parameter(Mandatory=$true, Position=1, HelpMessage="A version is required")] + [string]$version +) + +if ($branch -eq "") +{ + $branch = "teamcity"; +} + +Write-Host $branch; +Write-Host $version; +Write-Host "NzbDrone.$branch.$version.zip"; + +Rename-Item "nzbdrone.zip" "NzbDrone.$branch.$version.zip" \ No newline at end of file