File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,9 +51,6 @@ DELETE_ME_TO_DISABLE_CONSOLEHOST_TELEMETRY
5151# default location for produced nuget packages
5252/nuget-artifacts
5353
54- # generated man files
55- /assets /powershell.1 *
56-
5754# resgen output
5855gen
5956
Original file line number Diff line number Diff line change 1- powershell (1) -- command-line shell and .NET REPL
1+ pwsh (1) -- PowerShell command-line shell and .NET REPL
22=================================================
33
44## SYNOPSIS
55
6- ` powershell ` [ ` -NoLogo ` ] [ ` -NoExit ` ] [ ` -NoProfile ` ] [ ` -NonInteractive ` ]
6+ ` pwsh ` [ ` -NoLogo ` ] [ ` -NoExit ` ] [ ` -NoProfile ` ] [ ` -NonInteractive ` ]
77[ ` -InputFormat ` {Text | XML}] [ ` -OutputFormat ` {Text | XML}]
88[ ` -EncodedCommand ` <Base64EncodedCommand >]
99[ ` -File ` <filePath > <args >] [ ` -ExecutionPolicy ` <ExecutionPolicy >]
@@ -120,4 +120,4 @@ These are automatically defined PowerShell-language variables.
120120## COPYRIGHT
121121
122122Copyright (c) 2016 Microsoft Corporation.
123- All rights reserved.
123+ All rights reserved.
Original file line number Diff line number Diff line change @@ -493,20 +493,16 @@ function New-UnixPackage {
493493 }
494494
495495 # run ronn to convert man page to roff
496- $RonnFile = Join-Path $PSScriptRoot " /../../assets/powershell .1.ronn"
496+ $RonnFile = Join-Path $PSScriptRoot " /../../assets/pwsh .1.ronn"
497497 $RoffFile = $RonnFile -replace " \.ronn$"
498498
499499 # Run ronn on assets file
500500 # Run does not play well with files named powershell6.0.1, so we generate and then rename
501501 Start-NativeExecution { ronn -- roff $RonnFile }
502502
503- # Setup for side-by-side man pages (noop if primary package)
504- $FixedRoffFile = $RoffFile -replace " powershell.1$" , " pwsh.1"
505- Move-Item $RoffFile $FixedRoffFile
506-
507503 # gzip in assets directory
508- $GzipFile = " $FixedRoffFile .gz"
509- Start-NativeExecution { gzip -f $FixedRoffFile }
504+ $GzipFile = " $RoffFile .gz"
505+ Start-NativeExecution { gzip -f $RoffFile }
510506
511507 $ManFile = Join-Path " /usr/local/share/man/man1" (Split-Path - Leaf $GzipFile )
512508
You can’t perform that action at this time.
0 commit comments