groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 35/40: [sboxes]: Skip macro package instead of aborting.


From: G. Branden Robinson
Subject: [groff] 35/40: [sboxes]: Skip macro package instead of aborting.
Date: Sat, 5 Feb 2022 12:58:07 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 95a2e97b80ab5e49fff27d93462abdefc24b01f0
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sun Feb 6 03:09:05 2022 +1100

    [sboxes]: Skip macro package instead of aborting.
    
    * sboxes.tmac: Skip macro package instead of aborting if there are
      prerequisite problems.  This is an auxiliary package; it is not
      necessarily fatal to the user's purposes if it doesn't load.
---
 contrib/sboxes/ChangeLog   |  6 ++++++
 contrib/sboxes/sboxes.tmac | 17 +++++++++++------
 2 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/contrib/sboxes/ChangeLog b/contrib/sboxes/ChangeLog
index f8741639..5e9b62ad 100644
--- a/contrib/sboxes/ChangeLog
+++ b/contrib/sboxes/ChangeLog
@@ -1,3 +1,9 @@
+2021-02-06  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * sboxes.tmac: Skip macro package instead of aborting if there
+       are prerequisite problems.  This is an auxiliary package; it is
+       not necessarily fatal to the user's purposes if it doesn't load.
+
 2021-02-06  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * sboxes.tmac: Stop requiring ms package.  As the documentation
diff --git a/contrib/sboxes/sboxes.tmac b/contrib/sboxes/sboxes.tmac
index 24ac289e..29a7d6f2 100644
--- a/contrib/sboxes/sboxes.tmac
+++ b/contrib/sboxes/sboxes.tmac
@@ -20,19 +20,24 @@ 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/>.
 ..
-.if !\n(.g \
-.  ab groff sboxes macros require groff extensions; aborting
+.if !\n(.g \{\
+.  tm groff sboxes macros require groff extensions; not loading
+.  nx
+.\}
 .
-.if \n(.C \
-.  ab groff sboxes macros do not work in compatibility mode; aborting
+.if \n(.C \{\
+.  tm groff sboxes macros do not work in compatibility mode; not loading
+.  nx
+.\}
 .
 .\" Define a string for use in diagnostic messages.
 .ds bx*name sboxes.tmac\"
 .
 .if (\n[.x]\n[.y] < 123) \{\
 .  ds bx*msg \*[bx*name]: groff 1.23 or later is required,\"
-.  as bx*msg " but found groff \n[.x].\n[.y]; aborting\"
-.  ab \*[bx*msg]
+.  as bx*msg " but found groff \n[.x].\n[.y]; not loading\"
+.  tm \*[bx*msg]
+.  nx
 .\}
 .
 .\" See if already loaded.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]