diff --git a/.gitignore b/.gitignore index 53d53f9105..db319f5835 100644 --- a/.gitignore +++ b/.gitignore @@ -51,9 +51,6 @@ DELETE_ME_TO_DISABLE_CONSOLEHOST_TELEMETRY # default location for produced nuget packages /nuget-artifacts -# generated man files -/assets/powershell.1* - # resgen output gen diff --git a/assets/powershell.1.ronn b/assets/pwsh.1.ronn similarity index 96% rename from assets/powershell.1.ronn rename to assets/pwsh.1.ronn index eea00966b0..8560f44e3b 100644 --- a/assets/powershell.1.ronn +++ b/assets/pwsh.1.ronn @@ -1,9 +1,9 @@ -powershell(1) -- command-line shell and .NET REPL +pwsh(1) -- PowerShell command-line shell and .NET REPL ================================================= ## SYNOPSIS -`powershell` [`-NoLogo`] [`-NoExit`] [`-NoProfile`] [`-NonInteractive`] +`pwsh` [`-NoLogo`] [`-NoExit`] [`-NoProfile`] [`-NonInteractive`] [`-InputFormat` {Text | XML}] [`-OutputFormat` {Text | XML}] [`-EncodedCommand` ] [`-File` ] [`-ExecutionPolicy` ] @@ -120,4 +120,4 @@ These are automatically defined PowerShell-language variables. ## COPYRIGHT Copyright (c) 2016 Microsoft Corporation. -All rights reserved. \ No newline at end of file +All rights reserved. diff --git a/tools/packaging/packaging.psm1 b/tools/packaging/packaging.psm1 index 7eb4798037..ca448711fb 100644 --- a/tools/packaging/packaging.psm1 +++ b/tools/packaging/packaging.psm1 @@ -493,20 +493,16 @@ function New-UnixPackage { } # run ronn to convert man page to roff - $RonnFile = Join-Path $PSScriptRoot "/../../assets/powershell.1.ronn" + $RonnFile = Join-Path $PSScriptRoot "/../../assets/pwsh.1.ronn" $RoffFile = $RonnFile -replace "\.ronn$" # Run ronn on assets file # Run does not play well with files named powershell6.0.1, so we generate and then rename Start-NativeExecution { ronn --roff $RonnFile } - # Setup for side-by-side man pages (noop if primary package) - $FixedRoffFile = $RoffFile -replace "powershell.1$", "pwsh.1" - Move-Item $RoffFile $FixedRoffFile - # gzip in assets directory - $GzipFile = "$FixedRoffFile.gz" - Start-NativeExecution { gzip -f $FixedRoffFile } + $GzipFile = "$RoffFile.gz" + Start-NativeExecution { gzip -f $RoffFile } $ManFile = Join-Path "/usr/local/share/man/man1" (Split-Path -Leaf $GzipFile)