You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2017/04/25 11:51:05 UTC
[24/52] [abbrv] lucenenet git commit: build\build.ps1: Added git
commit hash to the AssemblyInformationalVersion attribute
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/master
Commit: 85c19d3f9086b048e1118d16bfdc2b61b21e3487
Parents: ba5c709
Author: Shad Storhaug <sh...@shadstorhaug.com>
Authored: Fri Apr 21 02:07:12 2017 +0700
Committer: Shad Storhaug <sh...@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