From: Patrick McCarty Date: Fri, 28 Aug 2009 00:21:17 +0000 (-0700) Subject: configure: Match one PFB font if duplicates are found X-Git-Tag: release/2.12.3-1~4 X-Git-Url: https://git.donarmstrong.com/lilypond.git?a=commitdiff_plain;h=88bcceedeb566ced9edcef51c7049a79f4fde10e;p=lilypond.git configure: Match one PFB font if duplicates are found If fc-list finds more than one identical PFB font, we only want to match one of them. This case is probably rare, but we should be defensive anyway. (cherry picked from commit d9b28504722c90d0b092cd257d27e0d3f81b4592) --- diff --git a/configure.in b/configure.in index d91d5c6364..20728eb937 100644 --- a/configure.in +++ b/configure.in @@ -73,7 +73,8 @@ if test "$NCSB_DIR" != "" ; then else if test "$FCLIST" != ""; then for style in Roman Italic "Bold Italic" Bold; do - NCSB_FILE=`$FCLIST "Century Schoolbook L:style=$style:foundry=urw:fontformat=Type 1" file` + NCSB_FILE=`$FCLIST "Century Schoolbook L:style=$style:foundry=urw:fontformat=Type 1" file \ + | head -n 1` NCSB_FILE=`echo $NCSB_FILE | sed 's/^\(.*\):$/\1/g'` NCSB_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $NCSB_FILE` NCSB_SOURCE_FILES="$NCSB_FILE $NCSB_SOURCE_FILES"