Permalink
Browse files

Updated build script to pull version from latest git tag.

  • Loading branch information...
1 parent 48b682c commit 584a12581ee9eea058d7527fd43e7490cbebe800 @CoreyKaylor CoreyKaylor committed Jul 9, 2011
Showing with 8 additions and 2 deletions.
  1. +1 −1 default.ps1
  2. +7 −1 psake_ext.ps1
View
@@ -7,7 +7,7 @@ properties {
$35_lib_dir = "$base_dir\SharedLibs\3.5\"
$release_dir = "$base_dir\Release"
$sln_file = "$base_dir\Rhino.ServiceBus.sln"
- $version = "2.1.0.0"
+ $version = Get-Version-From-Git-Tag
$tools_dir = "$base_dir\Tools"
$config = "Release"
$run_tests = "true"
View
@@ -4,6 +4,12 @@ function Get-Git-Commit
return $gitLog.Split(' ')[0]
}
+function Get-Version-From-Git-Tag
+{
+ $gitTag = git describe --tags --abbrev=0
+ return $gitTag.Replace("v", "") + ".0"
+}
+
function Generate-Assembly-Info
{
param(
@@ -43,4 +49,4 @@ using System.Runtime.InteropServices;
}
Write-Host "Generating assembly info file: $file"
Write-Output $asmInfo > $file
-}
+}

0 comments on commit 584a125

Please sign in to comment.