gbranden pushed a commit to branch master
in repository groff.

commit 9044e0f13a2fc0483133afdb1bd0d1362d389265
Author: G. Branden Robinson <g.branden.robin...@gmail.com>
AuthorDate: Sat Jun 21 12:00:00 2025 -0500

    groff_man*(7): Fix inaccurately reported date.
    
    [man]: Fix inaccurately reported revision date of groff_man(7) and
    groff_man_style(7) man pages.  Since they're generated by m4 from a
    common `.in` file, our Perl `mdate` script was replacing the center
    footer with, effectively, the build time of the m4-generated document
    rather then the revision date of the maintained source file.
    
    * tmac/groff_man.7.man.in: Replace `@MDATE@` with newly contrived
      substitutum [dog Latin], `REVISION_DATE`.  It works just like the
      former, but has a new name to reflect the distinguishable process of
      its replacement.
    
    * tmac/tmac.am (tmac/groff_man.7.man, tmac/groff_man_style.7.man):
      Make m4(1) write to a temporary file, then process the temporary file
      with `mdate.pl` to replace the aforementioned subtitutum.  As a side
      effect, there is no longer an `@MDATE@` in the file for the ".man"
      suffix rule in "Makefile.am" to affect.
---
 ChangeLog               | 20 ++++++++++++++++++++
 tmac/groff_man.7.man.in |  4 ++--
 tmac/tmac.am            |  2 ++
 3 files changed, 24 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index f40a5e654..47c61d6b3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,23 @@
+2025-06-21  G. Branden Robinson <g.branden.robin...@gmail.com>
+
+       [man]: Fix inaccurately reported revision date of groff_man(7)
+       and groff_man_style(7) man pages.  Since they're generated by m4
+       from a common `.in` file, our Perl `mdate` script was replacing
+       the center footer with, effectively, the build time of the
+       m4-generated document rather then the revision date of the
+       maintained source file.
+
+       * tmac/groff_man.7.man.in: Replace `@MDATE@` with newly
+       contrived substitutum [dog Latin], `REVISION_DATE`.  It works
+       just like the former, but has a new name to reflect the
+       distinguishable process of its replacement.
+       * tmac/tmac.am (tmac/groff_man.7.man)
+       (tmac/groff_man_style.7.man): Make m4(1) write to a temporary
+       file, then process the temporary file with `mdate.pl` to replace
+       the aforementioned subtitutum.  As a side effect, there is no
+       longer an `@MDATE@` in the file for the ".man" suffix rule in
+       "Makefile.am" to affect.
+
 2025-06-21  Deri James  <d...@chuzzlewit.myzen.co.uk>
 
        Remove unneccessary call to pdf parser.
diff --git a/tmac/groff_man.7.man.in b/tmac/groff_man.7.man.in
index e14e0910d..d6005db9c 100644
--- a/tmac/groff_man.7.man.in
+++ b/tmac/groff_man.7.man.in
@@ -40,10 +40,10 @@ divert`'dnl
 '\" t
 .\" This page is generated by m4 from tmac/groff_man.7.man.in.
 _ifnotstyle()dnl
-.TH groff_man @MAN7EXT@ "@MDATE@" "groff @VERSION@"
+.TH groff_man @MAN7EXT@ "REVISION_DATE" "groff @VERSION@"
 _endif()dnl
 _ifstyle()dnl
-.TH groff_man_style @MAN7EXT@ "@MDATE@" "groff @VERSION@"
+.TH groff_man_style @MAN7EXT@ "@MDATE_IN@" "groff @VERSION@"
 _endif()dnl
 .SH Name
 _ifnotstyle()dnl
diff --git a/tmac/tmac.am b/tmac/tmac.am
index 8e37e860e..e5d3da8b4 100644
--- a/tmac/tmac.am
+++ b/tmac/tmac.am
@@ -262,10 +262,12 @@ $(M4CHECK): tmac/groff_man.7.man.in
 
 tmac/groff_man.7.man: tmac/groff_man.7.man.in $(M4CHECK)
        $(AM_V_GEN)$(M4) -D_groff_man_not_style \
+         -DREVISION_DATE=`$(PERL) $(top_srcdir)/mdate.pl 
$(top_srcdir)/tmac/groff_man.7.man.in` \
          $(tmac_srcdir)/groff_man.7.man.in > $@
 
 tmac/groff_man_style.7.man: tmac/groff_man.7.man.in $(M4CHECK)
        $(AM_V_GEN)$(M4) -D_groff_man_style \
+         -DREVISION_DATE=`$(PERL) $(top_srcdir)/mdate.pl 
$(top_srcdir)/tmac/groff_man.7.man.in` \
          $(tmac_srcdir)/groff_man.7.man.in > $@
 
 # The installation of groff compatibility wrappers for vendor-provided

_______________________________________________
groff-commit mailing list
groff-commit@gnu.org
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to