3 @node Upgrading from older LilyPond versions
4 @chapter Upgrading from older LilyPond versions
7 Convert-ly sequentially applies different conversions to upgrade a
8 Lilypond input file. It uses @code{\version} statements in the file to
9 detect the old version number. For example, to upgrade all lilypond
10 files in the current directory and its subdirectories, use
12 convert-ly -e --to=1.3.150 `find . -name '*.ly' -print`
15 The program is invoked as follows:
17 convert-ly [@var{options}] @var{files}
21 The following options can be given:
25 If version number cannot be determined, apply all conversions.
27 Do an inline edit of the input file. Overrides @code{--output}.
28 @item -f,--from=@var{from-patchlevel}
29 Set the level to convert from. If this is not set, convert-ly will
30 guess this, on the basis of @code{\version} strings in the file.
31 @item -o,--output=@var{file}
32 Set the output file to write.
34 Normally, convert-ly adds a @code{\version} indicator
35 to the output. Specifying this option suppresses this.
36 @item -s, --show-rules
37 Show all known conversions and exit.
38 @item --to=@var{to-patchlevel}
39 Set the goal version of the conversion. It defaults to the latest
49 Not all language changes are handled. Only one output options can be specified.