mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 04:36:39 +00:00
Make git describe work relative to script
So that you don't have to watch your CWD when running commands from the build module.
This commit is contained in:
1 parent
aa273571db
commit
66ddfcdaff
1 file changed
+2
-1
+2
-1
@@ -53,7 +53,8 @@ function Start-PSBuild {
|
|||||||
[string]$msbuildConfiguration = "Release"
|
[string]$msbuildConfiguration = "Release"
|
||||||
)
|
)
|
||||||
|
|
||||||
git describe --dirty --abbrev=60 > "$psscriptroot/powershell.version"
|
# save Git description to file for PowerShell to include in PSVersionTable
|
||||||
|
git --git-dir="$PSScriptRoot/.git" describe --dirty --abbrev=60 > "$psscriptroot/powershell.version"
|
||||||
|
|
||||||
# simplify ParameterSetNames
|
# simplify ParameterSetNames
|
||||||
if ($PSCmdlet.ParameterSetName -eq 'FullCLR') {
|
if ($PSCmdlet.ParameterSetName -eq 'FullCLR') {
|
||||||
|
|||||||
Reference in new issue
Block a user