Keep the roff file when gzipping it. (#24450) (#24453)

Co-authored-by: Travis Plunk <travis.plunk@microsoft.com>
This commit is contained in:
Aditya Patwardhan
2024-10-16 07:53:02 -07:00
committed by GitHub
co-authored by Travis Plunk
parent 55b929b017
commit 63fba30e4a
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -104,3 +104,9 @@ logfile/*
# Ignore nuget.config because it is dynamically generated
nuget.config
# Ignore MSBuild Binary Logs
msbuild.binlog
# Ignore gzip files in the manpage folder
assets/manpage/*.gz
+1 -1
View File
@@ -1726,7 +1726,7 @@ function New-ManGzip
# gzip in assets directory
$GzipFile = "$RoffFile.gz"
Write-Log "Creating man gz - running gzip..."
Start-NativeExecution { gzip -f $RoffFile } -VerboseOutputOnError
Start-NativeExecution { gzip -kf $RoffFile } -VerboseOutputOnError
$ManFile = Join-Path "/usr/local/share/man/man1" (Split-Path -Leaf $GzipFile)