From c5050b03b7459ea19b6ded9369d098d3b08573ed Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Wed, 13 Aug 2014 23:32:27 -0400 Subject: [PATCH] fontconfig check by Don Bright --- scripts/check-dependencies.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/check-dependencies.sh b/scripts/check-dependencies.sh index c8ef5225..fad0026b 100755 --- a/scripts/check-dependencies.sh +++ b/scripts/check-dependencies.sh @@ -96,10 +96,10 @@ fontconfig_sysver() { fcpath=$1/include/fontconfig/fontconfig.h if [ ! -e $fcpath ]; then return; fi - fcmajor=`grep "define *FC_MAJOR *[0-9.]*" $fcpath | awk '{print $3}'` - fcminor=`grep "define *FC_MINOR *[0-9.]*" $fcpath | awk '{print $3}'` - fcrevison=`grep "define *FC_REVISION *[0-9.]*" $fcpath | awk '{print $3}'` - fontconfig_sysver="${fcmajor}.${fcminor}.${fcrevision}" + fcmajor=`grep "define *FC_MAJOR.*[0-9.]*" $fcpath | awk '{print $3}'` + fcminor=`grep "define *FC_MINOR.*[0-9.]*" $fcpath | awk '{print $3}'` + fcrevison=`grep "define *FC_REVISION.*[0-9.]*" $fcpath | awk '{print $3}'` + fontconfig_sysver_result="${fcmajor}.${fcminor}.${fcrevision}" } freetype2_sysver()