bugGNU roff - Bugs: bug #42968, [mdoc] handle OpenBSD-style...

 
 

bug #42968: [mdoc] handle OpenBSD-style $Mdocdate CVS keyword

Submitter:  None
Submitted:  Tue 12 Aug 2014 02:46:10 PM UTC
   
 
Category:  Macro mdoc Severity:  3 - Normal
Item Group:  Feature change Status:  Fixed
Privacy:  Public Assigned to:  wl
Open/Closed:  Closed Planned Release:  1.22.3
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 22 Jan 2022 01:17:30 PM UTC, comment #3: 


commit 19f60d9e88208633350987f148396fe1376b76bf
Author:     Ingo Schwarze <schwarze@openbsd.org>
AuthorDate: Mon Oct 13 06:07:37 2014 +0200
Commit:     Werner Lemberg <wl@gnu.org>
CommitDate: Mon Oct 13 06:07:37 2014 +0200

    [mdoc] Support `Mdocdate' CVS keyword substitution.
    This fixes Savannah bug #42968.

    This feature is used for OpenBSD manuals.

    * tmac/doc-common (Dd): Handle `$Mdocdate:' argument.

    * tmac/groff_mdoc.man: Document it.


G. Branden Robinson <gbranden>
Group administrator
Mon 13 Oct 2014 04:09:31 AM UTC, comment #2: 

[Updated patch sent to groff mailing list applied to git repository.]

Werner LEMBERG <wl>
Group administrator
Sun 12 Oct 2014 09:39:45 PM UTC, comment #1: 

I can apply this patch if you document `Dd's new capability in groff_mdoc.man ...

Werner LEMBERG <wl>
Group administrator
Tue 12 Aug 2014 02:46:10 PM UTC, original submission:  

in OpenBSD, we are using CVS keyword substitution to automatically update the manual page date when committing to the manual page - updating the date was too often forgotten before this was implemented, and typos crept into the dates as well.  It looks like this:

.Dd $Mdocdate: March 5 2011 $
.Dt CAT 1
.Os

To make groff handle that, i'm using the following patch.

Maybe you want to include it upstream?
It costs very little, and it helps people who want to read OpenBSD manuals on other operating systems.

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #31889:  Mdocdate.patch added by None (610B - text/x-patch - patch to tmac/doc-common)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gbranden (Posted a comment)
  • -email is unavailable- added by wl (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-03-05 gbranden Summarymdoc: handle OpenBSD-style $Mdocdate CVS keyword [mdoc] handle OpenBSD-style $Mdocdate CVS keyword
    2022-01-22 gbranden Item GroupNone Feature change
    2022-01-22 gbranden CategoryNone Macro mdoc
    2014-10-13 wl StatusNone Fixed
        Open/ClosedOpen Closed
        Planned ReleaseNone 1.22.3
    2014-10-12 wl Assigned toNone wl
    2014-08-12 None Attached File- Added Mdocdate.patch, #31889

    Back to the top

    Powered by Savane 3.13-cf05.
    Corresponding source code