]> git.donarmstrong.com Git - lilypond.git/commit
Add include-settings cmd line option to include a custom settings
authorReinhold Kainhofer <reinhold@kainhofer.com>
Mon, 26 Jul 2010 12:09:18 +0000 (14:09 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Sat, 21 Aug 2010 22:13:01 +0000 (00:13 +0200)
commit704b06c2bbaebd2ce83e7c04481c12e8fbdf9363
tree10f01047f1036465ac644bbe24c81d4b91177585
parentbb719a6345447f9b249b4f8e86b219cff94867ad
Add include-settings cmd line option to include a custom settings

This allows the user to apply the same set of options
to different files, or to apply different settings to
the same score without modifying the score itself.
In particular,
  lilypond -dinclude-settings=myinclude.ily file.ly
will compile file.ly, but read and execute myinclude.ily
before file.ly is processed. That way, e.g. global paper
changes can be easily done, and a file can be run several
times, each time with a different include-settings file
containing different settings.

This feature is similar to the --init=DATEI feature,
except that --init will replace the whole init sequence
(thus your init file will need to copy all of lilypond's
init.ly), while -dinclude-settings will only add some
definitions to the normal init sequence in init.ly (i.e.
the file is included in init.ly, so the normal init sequence
takes place).

Unfortunately, it is not possible to add lilypond variable
definitions for use in the score... This is probably due
to the way the init sequence works.
Documentation/changes.tely
ly/init.ly
scm/lily.scm