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

This commit is contained in:
Aditya Patwardhan
2024-10-31 09:15:40 -07:00
committed by GitHub
parent afd21a32c1
commit 82cefa6f19
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -108,3 +108,6 @@ nuget.config
# Ignore MSBuild Binary Logs
msbuild.binlog
# Ignore gzip files in the manpage folder
assets/manpage/*.gz
+1 -1
View File
@@ -1728,7 +1728,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)