]> git.donarmstrong.com Git - lilypond.git/commitdiff
Match python/convertrules.py versions to that of stable branch.
authorDavid Kastrup <dak@gnu.org>
Fri, 27 Dec 2013 17:29:20 +0000 (18:29 +0100)
committerDavid Kastrup <dak@gnu.org>
Fri, 27 Dec 2013 17:29:20 +0000 (18:29 +0100)
This became necessary due to cherry-picking the following into stable:

convert-ly rule for new make-relative semantics accepting music arguments

This only works when the "reference pitch" is the first or last of
the list.

No attempt is made to rewind the version numbers of already converted
files from 2.19.0 to 2.17.97.

python/convertrules.py

index 8c472a63e03d487775fc8f6673b9e60a5e43c64f..28c27fb8b892f3859d9877f2f2e3c24421f1cdd8 100644 (file)
@@ -3683,7 +3683,7 @@ def conv(str):
     str = re.sub ("New_dynamic_engraver", "Dynamic_engraver", str)
     return str
 
-@rule ((2, 19, 0), r'''(make-relative (a b) b ...) -> make-relative (a b) #{ a b #}...''')
+@rule ((2, 17, 97), r'''(make-relative (a b) b ...) -> make-relative (a b) #{ a b #}...''')
 def conv (str):
     str = re.sub (r"(\(make-relative\s+\(\s*(([A-Za-z][-_A-Za-z0-9]*)" +
                   r"(?:\s+[A-Za-z][-_A-Za-z0-9]*)*)\s*\)\s*)\3(?=\s)",