groff-commit
[Top][All Lists]
Advanced

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

[groff] 01/01: Fix build on environment where /etc/papersize contains co


From: Bertrand Garrigues
Subject: [groff] 01/01: Fix build on environment where /etc/papersize contains comments
Date: Sun, 18 Nov 2018 18:24:54 -0500 (EST)

bgarrigues pushed a commit to branch master
in repository groff.

commit 2226128d39a505bf71bbb63f0d8e3c0d16aef550
Author: Bertrand Garrigues <address@hidden>
Date:   Mon Nov 19 00:24:11 2018 +0100

    Fix build on environment where /etc/papersize contains comments
    
    Issue introduced on commit efea81c75f831ddc6717c2ef25556e0f49d1f679.
    
    * m4/groff.m4 (GROFF_PAGE): remove comments and get the 1st string
    of '/etc/papersize'.
---
 ChangeLog   | 9 +++++++++
 m4/groff.m4 | 2 +-
 2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 81bbff2..d58a885 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2018-11-19  Bertrand Garrigues <address@hidden>
+
+       Fix build on environment where /etc/papersize contains comments
+
+       Issue introduced on commit efea81c75f831ddc6717c2ef25556e0f49d1f679.
+
+       * m4/groff.m4 (GROFF_PAGE): remove comments and get the 1st string
+       of '/etc/papersize'.
+
 2018-11-13  G. Branden Robinson <address@hidden>
 
        [hdtbl] Don't clean other people's unit tests.
diff --git a/m4/groff.m4 b/m4/groff.m4
index cc2ef32..f9b5f13 100644
--- a/m4/groff.m4
+++ b/m4/groff.m4
@@ -779,7 +779,7 @@ AC_DEFUN([GROFF_PAGE],
    groff_prefix=$prefix
    test "x$prefix" = "xNONE" && groff_prefix=$ac_default_prefix
    if test -z "$PAGE" && test -r /etc/papersize; then
-     PAGE=`cat /etc/papersize`
+     PAGE=`cat /etc/papersize | sed -e 's/^[ ]*#.*//g' | tr -d "\n" | awk '{ 
print $1 }'`
    fi
    if test -z "$PAGE"; then
      descfile=



reply via email to

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