mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-23 01:34:19 +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
|
# Ignore MSBuild Binary Logs
|
||||||
msbuild.binlog
|
msbuild.binlog
|
||||||
|
|
||||||
|
# Ignore gzip files in the manpage folder
|
||||||
|
assets/manpage/*.gz
|
||||||
|
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user