gbranden pushed a commit to branch branden-2023-07-05 in repository groff. commit aa166303a3f2bf66fdff0260cdf288ef3830784b Author: G. Branden Robinson <g.branden.robin...@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 8bf2ef0d4..00be5b7fb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2023-03-13 G. Branden Robinson <g.branden.robin...@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.robin...@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 _______________________________________________ Groff-commit mailing list Groff-commit@gnu.org https://lists.gnu.org/mailman/listinfo/groff-commit