]> git.lyx.org Git - features.git/commitdiff
configure.py:
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 16 Mar 2009 13:47:58 +0000 (13:47 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 16 Mar 2009 13:47:58 +0000 (13:47 +0000)
- add support for newer lilypond versions (bug 5834).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28815 a592a061-630c-0410-9148-cb99ea01b6c8

lib/configure.py

index be0b71cad8f506ec477cd5ee2fa84db936e1a1ec..c4b5eacb76f62417808458a9f86805e8a31877f4 100644 (file)
@@ -519,7 +519,12 @@ def checkConverterEntries():
         if match:
             version_number = match.groups()[0]
             version = version_number.split('.')
-            if int(version[0]) > 2 or (len(version) > 1 and int(version[0]) == 2 and int(version[1]) >= 6):
+            if int(version[0]) > 2 or (len(version) > 1 and int(version[0]) == 2 and int(version[1]) >= 11):
+                addToRC(r'''\converter lilypond   eps        "lilypond -dbackend=eps --ps $$i" ""
+\converter lilypond   png        "lilypond -dbackend=eps --png $$i"    ""''')
+                addToRC(r'\converter lilypond   pdf        "lilypond -dbackend=eps --pdf $$i"  ""')
+                print '+  found LilyPond version %s.' % version_number
+            elif int(version[0]) > 2 or (len(version) > 1 and int(version[0]) == 2 and int(version[1]) >= 6):
                 addToRC(r'''\converter lilypond   eps        "lilypond -b eps --ps $$i"        ""
 \converter lilypond   png        "lilypond -b eps --png $$i"   ""''')
                 if int(version[0]) > 2 or (len(version) > 1 and int(version[0]) == 2 and int(version[1]) >= 9):