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

This commit is contained in:
Travis Plunk 2024-10-15 21:36:07 -07:00 committed by GitHub
parent 14c82b568a
commit 623c45174a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

3
.gitignore vendored
View File

@ -108,3 +108,6 @@ nuget.config
# Ignore MSBuild Binary Logs # Ignore MSBuild Binary Logs
msbuild.binlog msbuild.binlog
# Ignore gzip files in the manpage folder
assets/manpage/*.gz

View File

@ -1728,7 +1728,7 @@ function New-ManGzip
# gzip in assets directory # gzip in assets directory
$GzipFile = "$RoffFile.gz" $GzipFile = "$RoffFile.gz"
Write-Log "Creating man gz - running gzip..." Write-Log "Creating man gz - running gzip..."
Start-NativeExecution { gzip -f $RoffFile } -VerboseOutputOnError Start-NativeExecution { gzip -kf $RoffFile } -VerboseOutputOnError
if($Environment.IsMacOS) { if($Environment.IsMacOS) {
$ManFile = Join-Path "/usr/local/share/man/man1" (Split-Path -Leaf $GzipFile) $ManFile = Join-Path "/usr/local/share/man/man1" (Split-Path -Leaf $GzipFile)