[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 18/127: m4/groff.m4: Drop garbage space from variable.
From: |
G. Branden Robinson |
Subject: |
[groff] 18/127: m4/groff.m4: Drop garbage space from variable. |
Date: |
Mon, 10 Jul 2023 04:30:22 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit b93dd3e894b5ee942e88ad2101773008a0bc2070
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Mon Mar 13 22:31:57 2023 -0500
m4/groff.m4: Drop garbage space from variable.
* m4/groff.m4 (GROFF_TMAC): Eliminate garbage leading space from
contents of `tmac_wrap` shell variable.
---
ChangeLog | 5 +++++
m4/groff.m4 | 11 ++++++++---
2 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 27f566f23..dd9241c4c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-03-13 G. Branden Robinson <g.branden.robinson@gmail.com>
+
+ m4/groff.m4 (GROFF_TMAC): Eliminate garbage leading space from
+ contents of `tmac_wrap` shell variable.
+
2023-03-13 G. Branden Robinson <g.branden.robinson@gmail.com>
[build]: Clarify output of `GROFF_TMAC` Autoconf test.
diff --git a/m4/groff.m4 b/m4/groff.m4
index fb1157e06..e225dd11a 100644
--- a/m4/groff.m4
+++ b/m4/groff.m4
@@ -1146,6 +1146,7 @@ AC_DEFUN([GROFF_TMAC],
AC_MSG_CHECKING([for system macro packages to make available])
tmac_wrap=
+ space=
if test "$sys_tmac_file_prefix" = tmac.
then
for f in $sys_tmac_prefix*
@@ -1155,8 +1156,11 @@ AC_DEFUN([GROFF_TMAC],
e)
;;
*)
- grep "Copyright.*Free Software Foundation" $f >/dev/null \
- || tmac_wrap="$tmac_wrap $suff" ;;
+ if ! grep "Copyright.*Free Software Foundation" $f >/dev/null
+ then
+ tmac_wrap="$tmac_wrap$space$suff"
+ space=' '
+ fi ;;
esac
done
elif test -n "$sys_tmac_prefix"
@@ -1185,7 +1189,8 @@ AC_DEFUN([GROFF_TMAC],
tmac.*)
;;
*)
- tmac_wrap="$tmac_wrap $suff" ;;
+ tmac_wrap="$tmac_wrap$space$suff"
+ space=' ' ;;
esac
fi
esac
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 18/127: m4/groff.m4: Drop garbage space from variable.,
G. Branden Robinson <=