groff-commit
[Top][All Lists]
Advanced

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

[groff] 03/03: Makefile.am: Protect args to "tr" from globbing.


From: G. Branden Robinson
Subject: [groff] 03/03: Makefile.am: Protect args to "tr" from globbing.
Date: Sun, 19 Nov 2017 22:56:03 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 62f8d5c5e2e4c5b075db68c85df1576ed19e1a9e
Author: G. Branden Robinson <address@hidden>
Date:   Sun Nov 19 22:51:29 2017 -0500

    Makefile.am: Protect args to "tr" from globbing.
    
    Prevents errors from tr during man page generation and possible
    incorrect program prefixing in those pages if, for example, some
    doofus has directories called "A", "B", ...  hanging around in
    the build tree.
    
    Signed-off-by: G. Branden Robinson <address@hidden>
---
 ChangeLog   | 9 +++++++++
 Makefile.am | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 545e52d..84fa0c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2017-11-19  G. Branden Robinson <address@hidden>
 
+       Makefile.am: Protect arguments to "tr" from globbing.
+
+       Prevents errors from tr during man page generation and possible
+       incorrect program prefixing in those pages if, for example, some
+       doofus has directories called "A", "B", ...  hanging around in
+       the build tree.
+
+2017-11-19  G. Branden Robinson <address@hidden>
+
        contrib/hdtbl/examples/*.roff: Seed RNG.
 
        * contrib/hdtbl/examples/col_rowspan_colors.roff:
diff --git a/Makefile.am b/Makefile.am
index 986fb30..6232f55 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -878,7 +878,7 @@ SUFFIXES += .man
             -e "s|address@hidden@]|$(exampledir)|g" \
             -e "s|address@hidden@]|$(fontdir)|g" \
             -e "s|address@hidden@]|$(g)|g" \
-            -e "address@hidden@]!`echo $(g) | tr [a-z] [A-Z]`!g" \
+            -e "address@hidden@]!`echo $(g) | tr '[a-z]' '[A-Z]'`!g" \
             -e "s|address@hidden@]|$(htmldocdir)|g" \
             -e "s|address@hidden@]|$(indexext)|g" \
             -e "s|address@hidden@]|$(legacyfontdir)|g" \



reply via email to

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