]> git.donarmstrong.com Git - lilypond.git/commitdiff
Change NCSB fonts search (fix issue 2635)
authorJohn Mandereau <john.mandereau@gmail.com>
Mon, 2 Jul 2012 14:13:30 +0000 (16:13 +0200)
committerJohn Mandereau <john.mandereau@gmail.com>
Sun, 15 Jul 2012 00:22:51 +0000 (02:22 +0200)
In Debian Squeeze 6.0.5 (i686), fc-list (Fontconfig 2.8.0-2.1) has an
output format that is not handled well by previous configure script.

configure.in

index 0189be15b2aedb767832d777eccd8c6955dde845..2050b87336c5e885654e1756d4b94f9dd56dd10e 100644 (file)
@@ -76,7 +76,7 @@ else
     for style in Roman Italic "Bold Italic" Bold; do
       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=`echo $NCSB_FILE | sed 's/\(:.*\)$//g'`
       NCSB_FILE=`$PYTHON "$srcdir/scripts/auxiliar/readlink.py" $NCSB_FILE`
       NCSB_SOURCE_FILES="$NCSB_FILE $NCSB_SOURCE_FILES"
     done