From 63fba30e4a09027ee73d67821b4597bd97fbf1dd Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Wed, 16 Oct 2024 07:53:02 -0700 Subject: [PATCH] Keep the roff file when gzipping it. (#24450) (#24453) Co-authored-by: Travis Plunk --- .gitignore | 6 ++++++ tools/packaging/packaging.psm1 | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 39d029fef0..d97a2e4509 100644 --- a/.gitignore +++ b/.gitignore @@ -104,3 +104,9 @@ logfile/* # Ignore nuget.config because it is dynamically generated nuget.config + +# Ignore MSBuild Binary Logs +msbuild.binlog + +# Ignore gzip files in the manpage folder +assets/manpage/*.gz diff --git a/tools/packaging/packaging.psm1 b/tools/packaging/packaging.psm1 index c801aa98ed..ae891f7ef0 100644 --- a/tools/packaging/packaging.psm1 +++ b/tools/packaging/packaging.psm1 @@ -1726,7 +1726,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 $ManFile = Join-Path "/usr/local/share/man/man1" (Split-Path -Leaf $GzipFile)