[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #53271] m4/groff.m4: improve search for paper size on machines usin
From: |
G. Branden Robinson |
Subject: |
[bug #53271] m4/groff.m4: improve search for paper size on machines using /etc/papersize |
Date: |
Mon, 12 Nov 2018 14:45:31 -0500 (EST) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 |
Update of bug #53271 (project groff):
Status: None => In Progress
Assigned to: None => gbranden
Summary: m4/groff.m4: improve search for paper size on
machines without domain names => m4/groff.m4: improve search for paper size on
machines using /etc/papersize
_______________________________________________________
Follow-up Comment #4:
Why not just do this?
If /etc/papersize exists, use it.
diff --git a/m4/groff.m4 b/m4/groff.m4
index 13772dc1..b9f2ef45 100644
--- a/m4/groff.m4
+++ b/m4/groff.m4
@@ -776,14 +776,18 @@ AC_DEFUN([GROFF_BROKEN_SPOOLER_FLAGS],
AC_DEFUN([GROFF_PAGE],
[AC_MSG_CHECKING([default paper size])
- groff_prefix="$prefix"
+ 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`
+ fi
+
if test -z "$PAGE"; then
descfile=
if test -r "$groff_prefix"/share/groff/font/devps/DESC; then
- descfile="$groff_prefix"/share/groff/font/devps/DESC
+ descfile=$groff_prefix/share/groff/font/devps/DESC
elif test -r "$groff_prefix"/lib/groff/font/devps/DESC; then
- descfile="$groff_prefix"/lib/groff/font/devps/DESC
+ descfile=$groff_prefix/lib/groff/font/devps/DESC
else
for f in "$groff_prefix"/share/groff/*/font/devps/DESC; do
if test -r "$f"; then
(I also reverted some variable quoting that wasn't needed; thanks to Colin
Watson for the helpful citations.)
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?53271>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #53271] m4/groff.m4: improve search for paper size on machines using /etc/papersize,
G. Branden Robinson <=