[Libreoffice-commits] core.git: configure.ac
Jan-Marek Glogowski
glogow at fbihome.de
Fri Jan 24 00:32:02 PST 2014
configure.ac | 20 ++++++++------------
1 file changed, 8 insertions(+), 12 deletions(-)
New commits:
commit 93a2279c267e8c017550c4fe435d8c2718405aa2
Author: Jan-Marek Glogowski <glogow at fbihome.de>
Date: Thu Jan 23 18:19:58 2014 +0000
Cleanup font mapping configure test
Change the test to compare lowercase font filenames and actually
check, if the original font is installed. Additionally drop currently
unused and already commented font mappings.
This also drops the single other tr and awk users to use $AWK instead.
Change-Id: I1886eeb9578386e3d8bdda6f011fcc9bc59eaa36
Reviewed-on: https://gerrit.libreoffice.org/7619
Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos at collabora.co.uk>
diff --git a/configure.ac b/configure.ac
index 04547a7..93c39d3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2883,7 +2883,7 @@ if test $_os = Darwin; then
# the App Store, the "3rd Party Mac Developer" one. I think it works best to the the
# "Developer ID Application" one.
- identity=`security find-identity -p codesigning -v 2>/dev/null | grep 'Developer ID Application:' | awk '{print $2}' |head -1`
+ identity=`security find-identity -p codesigning -v 2>/dev/null | grep 'Developer ID Application:' | $AWK '{print $2}' |head -1`
if test -n "$identity"; then
MACOSX_CODESIGNING_IDENTITY=$identity
pretty_name=`security find-identity -p codesigning -v | grep "$MACOSX_CODESIGNING_IDENTITY" | sed -e 's/^[[^"]]*"//' -e 's/"//'`
@@ -11526,15 +11526,16 @@ TEST_FONTS_MISSING=0
# $2+ = accepted font mappings
test_font_map()
{
- FONT=$1 ; shift
- AC_MSG_CHECKING([Checking font mapping for '$FONT'])
+ FONT="$1" ; shift
+ AC_MSG_CHECKING([font mapping for '$FONT'])
FONTFILE="$(basename `$FCMATCH -f '%{file}' "$FONT"`)"
+ FONTFILE_LOWER="$(echo $FONTFILE | $AWK '{print tolower($0)}')"
- TESTEXPR="'${FONTFILE}' = '$1.ttf'"
+ TESTEXPR="'${FONTFILE_LOWER}' = '$(echo $FONT | $AWK '{print tolower($0)}').ttf'"
while true ; do
- MAPPING="$1" ; shift
+ MAPPING="$(echo $1 | $AWK '{print tolower($0)}')"; shift
test -n "$MAPPING" || break
- TESTEXPR="${TESTEXPR} -o '$FONTFILE' = '$MAPPING-Regular.ttf'"
+ TESTEXPR="${TESTEXPR} -o '${FONTFILE_LOWER}' = '$MAPPING-regular.ttf'"
done
if test $TESTEXPR
then
@@ -11563,12 +11564,7 @@ else
AC_MSG_WARN([Unable to query installed fonts - unit tests disabled.])
TEST_FONTS_MISSING=1
else
-# test_font_map 'Arial' 'LiberationSans'
-# test_font_map 'Arial Narrow' 'LiberationSansNarrow'
test_font_map 'Calibri' 'Carlito'
-# test_font_map 'Cambria' 'Caladea'
-# test_font_map 'Courier New' 'LiberationMono'
-# test_font_map 'Times New Roman' 'LiberationSerif'
if test ${TEST_FONTS_MISSING} -eq 1
then
AC_MSG_WARN([Unknown font mappings - unit tests disabled.])
@@ -12371,7 +12367,7 @@ else
fi
AC_SUBST(WITH_COMPAT_OOWRAPPERS)
-INSTALLDIRNAME=`echo AC_PACKAGE_NAME | tr '[[:upper:]]' '[[:lower:]]'`
+INSTALLDIRNAME=`echo AC_PACKAGE_NAME | $AWK '{print tolower($0)}'`
AC_MSG_CHECKING([for install dirname])
if test -n "$with_install_dirname" -a "$with_install_dirname" != "no" -a "$with_install_dirname" != "yes"; then
INSTALLDIRNAME="$with_install_dirname"
More information about the Libreoffice-commits
mailing list