]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/convert-ly.itexi
release: 1.3.149
[lilypond.git] / Documentation / user / convert-ly.itexi
1 @c -*-texinfo-*-
2
3 @node convert-ly
4 @chapter convert-ly
5
6
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.
10
11 @unnumberedsubsec Invoking convert-ly
12
13 @example
14         convert-ly [OPTION]... [FILE]...
15 @end example
16
17
18 @table @code
19 @item -a,--assume-old
20     If version number cannot be determined, apply all conversions.
21 @item -e,--edit
22     Do an inline edit of the input file. override @code{--output}
23 @item -f,--from=@var{from-patchlevel}
24     Set the level to convert from. If this is not set, convert-ly will
25     guess this, on the basis of @code{\version} strings in the file
26 @item -o,--output=@var{file}
27     Set the output file to write.  
28 @item -n,--no-version
29     Normally, convert-ly adds a @code{\version} indicator 
30 to the output. Specifying this option suppresses this.  
31
32 @item --show-rules
33     Show all known conversions and exit
34 @item --to=@var{to-patchlevel}
35     Set the goal version of the conversion. It defaults to the latest
36     available version.
37 @end table
38
39 @unnumberedsubsec Example
40
41 Upgrade all lilypond files to 1.3.150:
42 @example
43         convert-ly -e --to=1.3.150 `find -name '*.ly'`
44 @end example
45
46 @unnumberedsubsec Bugs
47
48 Not all language changes are handled. Multiple output options won't
49 work.
50
51 @unnumberedsubsec Authors
52
53 @code{convert-ly} is written in @uref{http://www.python.org,Python}. It
54 was written by @email{hanwen@@cs.uu.nl, Han-Wen Nienhuys}. Report bugs
55 to @code{bug-gnu-music@@gnu.org}
56
57