summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Huettel (dilfridge) <dilfridge@gentoo.org>2015-01-04 15:33:35 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-01-05 10:09:47 +0000
commitf53e79acd0d42f5c41e1104056af9cf23e9e2e2a (patch)
tree776c618b14a45fea5de2f8868f0e9115ff629ca3
parent5573fd8cf991b62c405ec9a4b624ebaf28cb8894 (diff)
Replace bash-specific code from configure.ac, fixes build for sh=dash users
Original patch by Rémi Cardona <remi@gentoo.org> Change-Id: I815567df8a868c3997e8ac357b8529fded28c950 Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=525454 Reviewed-on: https://gerrit.libreoffice.org/13731 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--configure.ac3
1 files changed, 1 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 8aa33d043998..5dbe640b4bd0 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11483,9 +11483,8 @@ test_font_map()
FONTFILE_LOWER="$(echo $FONTFILE | $AWK '{print tolower($0)}')"
TESTEXPR="'${FONTFILE_LOWER}' = '$(echo $FONT | $AWK '{print tolower($0)}').ttf'"
- while true ; do
+ while test "$#" -ge 1 ; do
MAPPING="$(echo $1 | $AWK '{print tolower($0)}')"; shift
- test -n "$MAPPING" || break
TESTEXPR="${TESTEXPR} -o '${FONTFILE_LOWER}' = '$MAPPING-regular.ttf'"
done
if test $TESTEXPR