[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to compile all ly-files including subfolders
From: |
Jacques Menu |
Subject: |
Re: how to compile all ly-files including subfolders |
Date: |
Fri, 14 Nov 2014 15:27:01 +0100 |
Hello Ed,
I’d say that both the bash and Python scripts proposed are clean, the question
is more whether they are clear for newcomers to scripting.
So yes, there’s a learning curve there.
Enjoy!
JM
> Le 14 nov. 2014 à 14:11:46, Ed Gordijn <address@hidden> a écrit :
>
> Hi Urs,
>
> I'm not sure I do agree with your statement:
>
> > You can surely do what you want with a pure shell script, but Python may be
> > cleaner to read
>
> The 'pure shell' script looks like this:
>
> #!/bin/bash
>
> shopt -s globstar # to be able to use ** for sub-dirs
>
> for lyFile in **/*.ly
> do
> out="${lyFile%.ly}" # filename without .ly
> lilypond -o"$out" "$lyFile"
> done
>
>
> I don't think your Python script is that much cleaner. Maybe it is more a
> learning curve thing.
>
> Greetings, Ed
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user
Re: how to compile all ly-files including subfolders, Flaming Hakama by Elaine, 2014/11/14
Re: how to compile all ly-files including subfolders, Stefan Thomas, 2014/11/17