]> git.donarmstrong.com Git - lilypond.git/commitdiff
configure: Match one PFB font if duplicates are found
authorPatrick McCarty <pnorcks@gmail.com>
Fri, 28 Aug 2009 00:21:17 +0000 (17:21 -0700)
committerPatrick McCarty <pnorcks@gmail.com>
Fri, 28 Aug 2009 00:57:57 +0000 (17:57 -0700)
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.

configure.in

index cf54338d7ff032543f3a85f4e4e8ff27b274c52e..baf86aeb1b9a19c953aef42b618086bf7734a63d 100644 (file)
@@ -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"