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: Ed Gordijn
Subject: Re: how to compile all ly-files including subfolders
Date: Fri, 14 Nov 2014 14:11:46 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

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



reply via email to

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