lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to compile all ly-files including subfolders


From: Flaming Hakama by Elaine
Subject: Re: how to compile all ly-files including subfolders
Date: Fri, 14 Nov 2014 18:15:20 -0800

 Or even shorter, if slightly more arcane:
find . -name '*ly' -exec sh -c 'ly={}; lilypond -o "${ly%.ly}" "$ly"' \;

You might want to put the dot in your -name argument so you don't match .ily files.

Also, I don't understand the need for the -o option when you are using the default name.  Which would boil down to:

find . -name '*.ly' -exec sh -c 'lilypond "{}"' \;



HTH,

David Elaine Alt
415 . 341 .4954                                           "Confusion is highly underrated"
address@hidden
self-immolation.info
skype: flaming_hakama
Producer ~ Composer ~ Instrumentalist
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


reply via email to

[Prev in Thread] Current Thread [Next in Thread]