Skip to content

Commit

Permalink
always include commit hash in vcs rev info
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhngtu committed Nov 23, 2021
1 parent 3278311 commit c5ce105
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion UpdateVersion.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ param([switch] $Force)

$vcsFile = "VersionVCS.h"
$vcsOld = Get-Content -ErrorAction Ignore -Raw $vcsFile
$vcsRev = git describe --tags --dirty --always
$vcsRev = git describe --tags --long --dirty --always
$vcsNew = "#pragma once`n`n#define VCS_REVISION L""$vcsRev""`n"
if ($Force -or ($vcsOld -ne $vcsNew)) {
echo "Updating revision: $vcsRev"
Expand Down
2 changes: 1 addition & 1 deletion UpdateVersionWix.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ param([switch] $Force)
Get-Content -Raw "$PSScriptRoot\Version.ps1" | Invoke-Expression

# compile happens in bin\Configuration folder
$vcsRev = git describe --tags --dirty --always
$vcsRev = git describe --tags --long --dirty --always
$wixFile = "..\..\Version.wxi"
$wixOld = Get-Content -ErrorAction Ignore -Raw $wixFile
$wixNew = `
Expand Down

0 comments on commit c5ce105

Please sign in to comment.