From 7b2fa73a8645b999f928d209bbb86d6633da09c0 Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Thu, 27 Aug 2009 17:21:17 -0700 Subject: [PATCH] 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. --- configure.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.in b/configure.in index cf54338d7f..baf86aeb1b 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" -- 2.39.5