diff options
author | G. Branden Robinson <g.branden.robinson@gmail.com> | 2022-09-19 16:21:31 -0500 |
---|---|---|
committer | G. Branden Robinson <g.branden.robinson@gmail.com> | 2022-09-25 15:47:11 -0500 |
commit | ee4518f07ef219e17a3bb8edf73700347a066e4b (patch) | |
tree | 2b394d41800cfbb2f1926e33dd0a57234abdc365 /m4 | |
parent | c41b8ce7fc8ba507ded9f0c606b0346ee769091b (diff) | |
download | groff-git-ee4518f07ef219e17a3bb8edf73700347a066e4b.tar.gz |
m4/groff.m4: Update indentation.
Tidy up after previous commit. Also put blank lines between control
structures for readability.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/groff.m4 | 63 |
1 files changed, 34 insertions, 29 deletions
diff --git a/m4/groff.m4 b/m4/groff.m4 index ffdcd1da8..b9ead007d 100644 --- a/m4/groff.m4 +++ b/m4/groff.m4 @@ -302,37 +302,42 @@ AC_DEFUN([GROFF_URW_FONTS_CHECK], [ then _list_paths=`$GHOSTSCRIPT -h | $AWK 'BEGIN { found = 0 } /Search path:/ { found = 1 } /^[ ]*\// { print $'0' }'| tr : ' '` fi - _list_paths="$_list_paths \ - /usr/share/fonts/type1/gsfonts/ \ - /usr/share/fonts/default/Type1/ \ - /usr/share/fonts/default/Type1/adobestd35/ \ - /usr/share/fonts/type1/urw-base35/ \ - /opt/local/share/fonts/urw-fonts/ \ - /usr/local/share/fonts/ghostscript/" - if test -n "$urwfontsdir" - then - _list_paths="$ _list_paths $urwfontsdir" - fi - for k in $_list_paths + + _list_paths="$_list_paths \ + /usr/share/fonts/type1/gsfonts/ \ + /usr/share/fonts/default/Type1/ \ + /usr/share/fonts/default/Type1/adobestd35/ \ + /usr/share/fonts/type1/urw-base35/ \ + /opt/local/share/fonts/urw-fonts/ \ + /usr/local/share/fonts/ghostscript/" + + if test -n "$urwfontsdir" + then + _list_paths="$ _list_paths $urwfontsdir" + fi + + for k in $_list_paths + do + for _font_file in \ + URWGothic-Book.t1 \ + URWGothic-Book.pfb \ + URWGothicL-Book.pfb \ + a010013l.pfb do - for _font_file in \ - URWGothic-Book.t1 \ - URWGothic-Book.pfb \ - URWGothicL-Book.pfb \ - a010013l.pfb - do - if test -f $k/$_font_file - then - AC_MSG_RESULT([found in $k]) - groff_have_urw_fonts=yes - break 2 - fi - done + if test -f $k/$_font_file + then + AC_MSG_RESULT([found in $k]) + groff_have_urw_fonts=yes + break 2 + fi done - if test $groff_have_urw_fonts = no - then - AC_MSG_RESULT([none found]) - fi + done + + if test $groff_have_urw_fonts = no + then + AC_MSG_RESULT([none found]) + fi + AC_SUBST([groff_have_urw_fonts]) ]) |