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
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to