> On 15 May, 2020, at 5:04 PM, David Kastrup <[email protected]> wrote: > > "Fr. Samuel Springuel" <[email protected]> writes: > >> Before I start writing a script to do this, is there an existing tool >> which will identify all the `\include` files that a LilyPond file >> depends on? Even better, one that will work in a recursive fashion? > > You can use a file like > > ... > and call it with > > lilypond --init parse-only.ly actual-file-name.ly 2> /dev/null > > and it should be pretty fast. Of course the file list includes > parse-only.ly... > > > -- > David Kastrup
Very nice. I’ve tested the various options and this seems to be the best option. While I haven’t tested with a really big file, this option appeared to be independent of file size while the option I came up with isn’t. Is there any chance that something like this could be introduced into LilyPond core? ✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝✝ Fr. Samuel, OSB (R. Padraic Springuel) St. Anselm’s Abbey 4501 South Dakota Ave, NE Washington, DC, 20017 202-269-2300 (c) 202-853-7036 PAX ☧ ΧΡΙΣΤΟΣ
