<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-base.
</pre>
<p><a href="https://github.com/macports/macports-base/commit/336594a8721e133da09626b5f922473975bcf946">https://github.com/macports/macports-base/commit/336594a8721e133da09626b5f922473975bcf946</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 336594a8721e133da09626b5f922473975bcf946
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Thu Jul 18 06:14:28 2024 +1000
<span style='display:block; white-space:pre;color:#404040;'> portdestroot: avoid setting variables when not used
</span>---
src/port1.0/portdestroot.tcl | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/src/port1.0/portdestroot.tcl b/src/port1.0/portdestroot.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index b0d8f67c9..0ebf48732 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/src/port1.0/portdestroot.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/src/port1.0/portdestroot.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -202,12 +202,14 @@ proc portdestroot::destroot_finish {args} {
</span> }
# Compress all manpages with gzip (instead)
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set manpath "${destroot}${prefix}/share/man"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set gzip [findBinary gzip ${portutil::autoconf::gzip_path}]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set gunzip "$gzip -d"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set bunzip2 "[findBinary bzip2 ${portutil::autoconf::bzip2_path}] -d"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set manpath ${destroot}${prefix}/share/man
</span> if {[file isdirectory ${manpath}] && [file type ${manpath}] eq "directory"} {
ui_info "$UI_PREFIX [format [msgcat::mc "Compressing man pages for %s"] ${subport}]"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set gzip [findBinary gzip ${portutil::autoconf::gzip_path}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set gunzip "$gzip -d"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set bunzip2 "[findBinary bzip2 ${portutil::autoconf::bzip2_path}] -d"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> set found 0
set manlinks [list]
set mandir_re {^(cat|man)(.)$}
</pre><pre style='margin:0'>
</pre>