groff-commit
[Top][All Lists]
Advanced

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

[groff] 01/03: m4/groff.m4: Tweak warning/notice text.


From: G. Branden Robinson
Subject: [groff] 01/03: m4/groff.m4: Tweak warning/notice text.
Date: Sun, 16 May 2021 05:31:03 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 4f9112192930525d5b0d872b5869f7e87ae0cacf
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sun May 16 12:03:52 2021 +1000

    m4/groff.m4: Tweak warning/notice text.
    
    * m4/groff.m4 (GROFF_HTML_PROGRAMS, GROFF_PDFDOC_PROGRAMS): Tweak
      autoconf warning messages when Ghostscript (gs) command missing to be
      more mutually congruent.
    
      (GROFF_URW_FONTS_CHECK): Tweak to note that gs is only run to locate
      the URW fonts if gs is available.
    
    Also fix comma splice in GROFF_URW_FONTS message.
---
 ChangeLog   |  8 ++++++++
 m4/groff.m4 | 10 +++++-----
 2 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 00507b8..c7e7618 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2021-05-16  G. Branden Robinson <g.branden.robinson@gmail.com>
 
+       * m4/groff.m4 (GROFF_HTML_PROGRAMS, GROFF_PDFDOC_PROGRAMS):
+       Tweak autoconf warning messages when Ghostscript (gs) command
+       missing to be more mutually congruent.
+       (GROFF_URW_FONTS_CHECK): Tweak to note that gs is only run to
+       locate the URW fonts if gs is available.
+
+2021-05-16  G. Branden Robinson <g.branden.robinson@gmail.com>
+
        * tmac/tests/an-old_AT-and-UC-footer-saved-and-restored.sh:
        Tweak to be more helpful when troubleshooting exasperating
        header/footer problems as in Savannah #60609.
diff --git a/m4/groff.m4 b/m4/groff.m4
index 07c0d4d..2ecf1af 100644
--- a/m4/groff.m4
+++ b/m4/groff.m4
@@ -273,9 +273,8 @@ AC_DEFUN([GROFF_HTML_PROGRAMS],
 
      AC_MSG_WARN([missing program$plural:
 
-  The program$plural
-     $missing
-  cannot be found in the PATH.
+  The program$plural $missing cannot be found in the PATH.
+
   Consequently, groff's HTML backend (grohtml) will not work properly$docnote
      ])
      doc_dist_target_ok=no
@@ -328,6 +327,7 @@ AC_DEFUN([GROFF_PDFDOC_PROGRAMS],
      AC_MSG_WARN([missing program$plural:
 
   The program$plural $missing cannot be found in the PATH.
+
   Consequently, groff's PDF formatter (pdfroff) will not work properly$docnote
      ])
      doc_dist_target_ok=no
@@ -358,7 +358,7 @@ AC_DEFUN([GROFF_URW_FONTS],
    AC_REQUIRE([GROFF_GHOSTSCRIPT_PATH])
    groff_have_urw_fonts=no
    if test "$AWK" = "missing" -o "$GHOSTSCRIPT" = "missing"; then
-     AC_MSG_WARN([awk and gs are required, can't look for URW fonts])
+     AC_MSG_WARN([awk and gs are required; can't look for URW fonts])
    else
      _list_paths=`$GHOSTSCRIPT -h | $AWK 'BEGIN { found = 0 } /Search path:/ { 
found = 1 } /^[ ]*\// { print $'0' }'| tr : ' '`
      _list_paths="$_list_paths /usr/share/fonts/type1/gsfonts/ \
@@ -407,7 +407,7 @@ AC_DEFUN([GROFF_URW_FONTS_CHECK],
     https://github.com/ArtifexSoftware/urw-base35-fonts/releases
 
   By default, groff will look for these fonts in the search path shown
-  by the 'gs -h' command and in the two directories
+  by the 'gs -h' command (if available) and in the two directories
     /usr/share/fonts/type1/gsfonts/
   and
     /opt/local/share/fonts/urw-fonts/



reply via email to

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