mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-26 19:34:22 +08:00
Keep the roff file when gzipping it. (#24450)
This commit is contained in:
parent
14c82b568a
commit
623c45174a
3
.gitignore
vendored
3
.gitignore
vendored
@ -108,3 +108,6 @@ nuget.config
|
||||
|
||||
# Ignore MSBuild Binary Logs
|
||||
msbuild.binlog
|
||||
|
||||
# Ignore gzip files in the manpage folder
|
||||
assets/manpage/*.gz
|
||||
|
@ -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
|
||||
|
||||
if($Environment.IsMacOS) {
|
||||
$ManFile = Join-Path "/usr/local/share/man/man1" (Split-Path -Leaf $GzipFile)
|
||||
|
Loading…
Reference in New Issue
Block a user