lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [3/3] lucenenet git commit: build\build.ps1: Added git commit hash to the AssemblyInformationalVersion attribute
Date Thu, 20 Apr 2017 19:13:22 GMT
build\build.ps1: Added git commit hash to the AssemblyInformationalVersion attribute


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/85c19d3f
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/85c19d3f
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/85c19d3f

Branch: refs/heads/api-work
Commit: 85c19d3f9086b048e1118d16bfdc2b61b21e3487
Parents: ba5c709
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Fri Apr 21 02:07:12 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Fri Apr 21 02:12:19 2017 +0700

----------------------------------------------------------------------
 build/build.ps1 | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/85c19d3f/build/build.ps1
----------------------------------------------------------------------
diff --git a/build/build.ps1 b/build/build.ps1
index 3c38ee6..1bfa4b3 100644
--- a/build/build.ps1
+++ b/build/build.ps1
@@ -199,12 +199,15 @@ function Get-Version() {
 function Prepare-For-Build([string[]]$projects) {
 	Backup-File $common_assembly_info 
 	
+	$gitCommit = ((git rev-parse --verify --short=10 head) | Out-String).Trim()
+	$pv = "$packageVersion commit:[$gitCommit]"
+
 	Generate-Assembly-Info `
 		-product $product_name `
 		-company $company_name `
 		-copyright $copyright `
 		-version $version `
-		-packageVersion $packageVersion `
+		-packageVersion $pv `
 		-file $common_assembly_info
 
 	Update-Constants-Version $packageVersion


Mime
View raw message