bugGNU roff - Bugs: bug #53784, [tmac] separate legal matter from...

 
 

bug #53784: [tmac] separate legal matter from other text in the same ".ig"-block

Submitter:  Bjarni Ingi Gislason <bjarniig>
Submitted:  Sun 29 Apr 2018 12:06:19 AM UTC
   
 
Category:  Macro - others/general Severity:  1 - Wish
Item Group:  Lint Status:  Invalid
Privacy:  Public Assigned to:  gbranden
Open/Closed:  Closed Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 05 Nov 2018 12:16:29 PM UTC, comment #1: 

I believe this bug is invalid but it did motivate me to make the stripper script more careful.

See commit c4d82acf4de9f1d6e19ef824607f3fd45f0dcf33.


commit c4d82acf4de9f1d6e19ef824607f3fd45f0dcf33 (HEAD -> master, origin/master, origin/HEAD)
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Mon Nov 5 07:00:46 2018 -0500

    tmac/strip.sed: Operate only if given permission.

            * tmac/strip.sed: Do nothing whatsoever to any input file that
            lacks a line matching "%beginstrip%".  This implements a
            contract between the macro file writer and the stripper script
            (roff input is not parseable with crude weaponry like regular
            expressions).  In practice, most of the changes performed by the
            script were already in a block enforcing this.  My changes:
              + Stop unconditionally inserting a roff comment noting the
                reader of stripping at line 2.  Instead, replace the line
                matching "%beginstrip%" with this comment if and only if it
                is present.
              + Stop deleting lines containing only the empty request if
                they occur before "%beginstrip%".
              + Tweak the wording of the roff comment.
              + Remove comment within the sed script; see
            <https://lists.gnu.org/archive/html/groff/2017-11/msg00057.html>
                and the sed section of "Limitations of Usual Tools" in the
                GNU Autoconf Manual.

            * tmac/e.tmac-u: Add a comment line to visually separate the end
            of the license statement from the comment emplaced by strip.sed.
            This is also consistent with the mdoc macro files.

            Invalidates <https://savannah.gnu.org/bugs/index.php?53784>.

    Signed-off-by: G. Branden Robinson <g.branden.robinson@gmail.com>


G. Branden Robinson <gbranden>
Group administrator
Sun 29 Apr 2018 12:06:19 AM UTC, original submission:  


From 8f021b0c97413e6e0c19efb847badd6a5c1cbd12 Mon Sep 17 00:00:00 2001
From: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
Date: Sun, 29 Apr 2018 00:00:29 +0000
Subject: [PATCH] tmac-files: Separate legal matter from other text in the same
 ".ig"-block

  Copyright text and other legal matter should not be in the same
".ig"-block as other text.

  Otherwise the normal text can't be removed with a "sed -e
'/^\.ig$/,/^\.\./d" command when the file is stripped (with
"tmac/stip.sed").

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
---
 contrib/pdfmark/pdfmark.tmac | 4 +++-
 tmac/devtag.tmac             | 5 +++--
 tmac/pdf.tmac                | 4 +++-
 tmac/www.tmac.in             | 5 +++--
 4 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/contrib/pdfmark/pdfmark.tmac b/contrib/pdfmark/pdfmark.tmac
index 2f1d0522..04b75774 100644
--- a/contrib/pdfmark/pdfmark.tmac
+++ b/contrib/pdfmark/pdfmark.tmac
@@ -19,7 +19,9 @@ for more details.

 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
-
+..
+.
+.ig
 Author's Note
 =============

diff --git a/tmac/devtag.tmac b/tmac/devtag.tmac
index cdbc49b0..25d25f82 100644
--- a/tmac/devtag.tmac
+++ b/tmac/devtag.tmac
@@ -25,8 +25,9 @@ for more details.

 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
-
-
+..
+.
+.ig
 ------------------------------------------------------------------------
     Description
 ------------------------------------------------------------------------
diff --git a/tmac/pdf.tmac b/tmac/pdf.tmac
index 350f7839..8045bb85 100644
--- a/tmac/pdf.tmac
+++ b/tmac/pdf.tmac
@@ -19,7 +19,9 @@ for more details.

 You should have received a copy of the GNU General Public License
 along with this program. If not, see <http://www.gnu.org/licenses/>.
-
+..
+.
+.ig
 Author's Note
 =============

diff --git a/tmac/www.tmac.in b/tmac/www.tmac.in
index b60e1b90..b9cb0373 100644
--- a/tmac/www.tmac.in
+++ b/tmac/www.tmac.in
@@ -27,8 +27,9 @@ for more details.

 You should have received a copy of the GNU General Public License along
 with this program.  If not, see <http://www.gnu.org/licenses/>.
-
-
+..
+.
+.ig
 ------------------------------------------------------------------------
     Description
 ------------------------------------------------------------------------
--
2.17.0


Bjarni Ingi Gislason <bjarniig>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

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 bjarniig (Submitted the item)
  •  

    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 10 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-06-10 gbranden CategoryGeneral Macro - others/general
        Summary[PATCH] tmac-files: Separate legal matter from other text in the same &quot;.ig&quot;-block [tmac] separate legal matter from other text in the same ".ig"-block
    2022-03-05 gbranden CategoryMacro - others/general General
        Item GroupFeature change Lint
    2022-03-05 gbranden Planned Release1.22.4 None
    2018-11-05 gbranden Severity3 - Normal 1 - Wish
        StatusNone Invalid
        Assigned toNone gbranden
        Open/ClosedOpen Closed
        Planned ReleaseNone 1.22.4

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code