The syntax is regularly changed to simplify it or improve it in different ways. A side effect of this, is that LilyPond often is not compatible with older files. To remedy this, the program convert-ly can be used to deal with most of the syntax changes.
It uses \version statements in the file to detect the old
version number. For example, to upgrade all LilyPond files in the
current directory and its subdirectories, enter the following on the
command line.
convert-ly -e `find . -name '*.ly' -print`
In general, the program is invoked as follows:
convert-ly [option]... file...
The following options can be given:
-e,--edit--output.
-f,--from=from-patchlevel\version strings in the file.
-o,--output=file-n,--no-version\version indicator
to the output. Specifying this option suppresses this.
-s, --show-rules--to=to-patchlevel-h, --helpconvert-ly always converts up to the last syntax change handled by
it. This means that the \version number left in the file is
usually lower than the version of convert-ly itself.
Not all language changes are handled. Only one output option can be specified.
This page is for LilyPond-2.4.5 (stable-branch).