gbranden pushed a commit to branch master
in repository groff.

commit add8a0a52ce31f096a80dda28ac55cd0022ae1c5
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Dec 1 21:43:30 2025 -0600

    [mm]: Trivially refactor.
    
    * contrib/mm/mmroff.pl: Rename scalar `want_only_xref_update` to
      `want_only_ref_update` for clarity; the script deals with references
      internal to the document, not cross references to others.
---
 contrib/mm/ChangeLog | 7 +++++++
 contrib/mm/mmroff.pl | 6 +++---
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/contrib/mm/ChangeLog b/contrib/mm/ChangeLog
index 67c1860a9..b3851dbb6 100644
--- a/contrib/mm/ChangeLog
+++ b/contrib/mm/ChangeLog
@@ -1,3 +1,10 @@
+2025-12-01  G. Branden Robinson <[email protected]>
+
+       * mmroff.pl: Rename scalar `want_only_xref_update` to
+       `want_only_ref_update` for clarity; the script deals with
+       references internal to the document, not cross references to
+       others.
+
 2025-10-07  G. Branden Robinson <[email protected]>
 
        * m.tmac (debug@big-dump): Report value of `debug*m` since we go
diff --git a/contrib/mm/mmroff.pl b/contrib/mm/mmroff.pl
index 27ad409ee..796f39087 100644
--- a/contrib/mm/mmroff.pl
+++ b/contrib/mm/mmroff.pl
@@ -29,7 +29,7 @@ use Config;
 # I do agree however that the previous way opened a whole bunch
 # of security holes.
 
-my $want_only_xref_update = 0;
+my $want_only_ref_update = 0;
 
 if (grep(/^--help$/, @ARGV)) {
        print <<EOF;
@@ -54,7 +54,7 @@ if (grep(/^--version$/, @ARGV)) {
 
 # check for -x and remove it
 if (grep(/^-x$/, @ARGV)) {
-       $want_only_xref_update = 1;
+       $want_only_ref_update = 1;
        @ARGV = grep(!/^-x$/, @ARGV);
 }
 
@@ -148,7 +148,7 @@ if ($rfilename) {
        close(OUT);
 }
 
-exit 0 if $want_only_xref_update;
+exit 0 if $want_only_ref_update;
 exit system($second_pass);
 
 sub print_index {

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to