Re: convert-ly question

2014-05-18 Thread Martin Tarenskeen
On Sun, 18 May 2014, Graham King wrote: If you're going to use xargs, be careful of .ly files containing whitespace in the filename.  The GNU implementations of find and xargs support an option for that: find . -name \*.ly -print0 | xargs -0 -n 1 convert-ly -e The commandline solution for

Re: convert-ly question

2014-05-18 Thread David Kastrup
Martin Tarenskeen m.tarensk...@zonnet.nl writes: On Sun, 18 May 2014, Graham King wrote: If you're going to use xargs, be careful of .ly files containing whitespace in the filename.  The GNU implementations of find and xargs support an option for that: find . -name \*.ly -print0 | xargs -0

Re: convert-ly question

2014-05-18 Thread Graham King
On Sun, 18 May 2014 08:38:09 +0200 (CEST) Martin Tarenskeen wrote: Luckily I don't need this kind of commandline virtuosity. I think I can do what I need with one of the first and easiest suggestions convert-ly -e **/*.ly I'm glad that you have a solution that works for you. Simple is

Re: convert-ly question

2014-05-18 Thread Martin Tarenskeen
On Sun, 18 May 2014, Graham King wrote: On Sun, 18 May 2014 08:38:09 +0200 (CEST) Martin Tarenskeen wrote: Luckily I don't need this kind of commandline virtuosity. I think I can do what I need with one of the first and easiest suggestions convert-ly -e **/*.ly One

Re: convert-ly question

2014-05-18 Thread David Kastrup
Martin Tarenskeen m.tarensk...@zonnet.nl writes: On Sun, 18 May 2014, Graham King wrote: On Sun, 18 May 2014 08:38:09 +0200 (CEST) Martin Tarenskeen wrote: Luckily I don't need this kind of commandline virtuosity. I think I can do what I need with one of the first and easiest

Re: convert-ly question

2014-05-17 Thread David Kastrup
Tim McNamara tim...@bitstream.net writes: Is there a syntax for running convert-ly on a directory without having to cd into the directory and invoking convert-ly -e *.ly There doesn’t seem to be a recursive option. Since I’ve got .ly files in 158 different directories it’d be

Re: convert-ly question

2014-05-17 Thread Tim McNamara
On May 16, 2014, at 1:54 PM, David Kastrup d...@gnu.org wrote: Tim McNamara tim...@bitstream.net writes: Is there a syntax for running convert-ly on a directory without having to cd into the directory and invoking convert-ly -e *.ly There doesn’t seem to be a recursive option.

Re: convert-ly question

2014-05-17 Thread David Kastrup
Tim McNamara tim...@bitstream.net writes: On May 16, 2014, at 1:54 PM, David Kastrup d...@gnu.org wrote: Tim McNamara tim...@bitstream.net writes: Is there a syntax for running convert-ly on a directory without having to cd into the directory and invoking convert-ly -e *.ly

Re: convert-ly question

2014-05-17 Thread Patrick or Cynthia Karl
On Fri, May 16, 2014 at 1:32 PM, Tim McNamara tim...@bitstream.net wrote: Message: 3 Date: Fri, 16 May 2014 13:32:28 -0500 From: Tim McNamara tim...@bitstream.net To: LilyPond Users lilypond-user@gnu.org Subject: convert-ly question Message-ID:

Re: convert-ly question

2014-05-17 Thread Malte Meyn
On 17.05.2014 18:20, Tim McNamara wrote: On May 16, 2014, at 1:54 PM, David Kastrup d...@gnu.org wrote: Tim McNamara tim...@bitstream.net writes: Is there a syntax for running convert-ly on a directory without having to cd into the directory and invoking convert-ly -e *.ly There

Re: convert-ly question

2014-05-17 Thread Tim McNamara
On May 17, 2014, at 11:41 AM, Malte Meyn lilyp...@maltemeyn.de wrote: On 17.05.2014 18:20, Tim McNamara wrote: On May 16, 2014, at 1:54 PM, David Kastrup d...@gnu.org wrote: Tim McNamara tim...@bitstream.net writes: Is there a syntax for running convert-ly on a directory without having

Re: convert-ly question

2014-05-17 Thread David Kastrup
Tim McNamara tim...@bitstream.net writes: On May 17, 2014, at 11:41 AM, Malte Meyn lilyp...@maltemeyn.de wrote: On 17.05.2014 18:20, Tim McNamara wrote: On May 16, 2014, at 1:54 PM, David Kastrup d...@gnu.org wrote: Tim McNamara tim...@bitstream.net writes: Is there a syntax for

Re: convert-ly question

2014-05-17 Thread Graham King
On Sat, 2014-05-17 at 11:37 -0500, Patrick or Cynthia Karl wrote: If you are on a unix machine (Mac, PC with Ubuntu, etc) you could do that by issuing the following command in a terminal window: find . -name \*.ly -print | xargs -n 1 convert-ly -e There is also a (possibly free)

Re: convert-ly question

2014-05-16 Thread Ralph Palmer
On Fri, May 16, 2014 at 2:32 PM, Tim McNamara tim...@bitstream.net wrote: Is there a syntax for running convert-ly on a directory without having to cd into the directory and invoking convert-ly -e *.ly There doesn’t seem to be a recursive option. Since I’ve got .ly files in 158

Re: convert-ly question

2014-05-16 Thread Malte Meyn
Under Linux try: find . -name '*.ly' -exec convert-ly -e '{}' \; Or, shorter, but doesn’t work by default with all shells (for example bash needs “shopt -s globstar” in the .bashrc): convert-ly -e **/*.ly On 16.05.2014 20:32, Tim McNamara wrote: Is there a syntax for running convert-ly on

Re: convert-ly question

2014-05-16 Thread Martin Tarenskeen
On Fri, 16 May 2014, Malte Meyn wrote: Under Linux try: find . -name '*.ly' -exec convert-ly -e '{}' \; Or, shorter, but doesn’t work by default with all shells (for example bash needs “shopt -s globstar” in the .bashrc): convert-ly -e **/*.ly Thanks for the hint, I didn't know that

Re: convert-ly question

2014-05-16 Thread Phil Burfitt
Hi Tim, Is there a syntax for running convert-ly on a directory without having to cd into the directory and invoking convert-ly -e *.ly There doesn’t seem to be a recursive option. Since I’ve got .ly files in 158 different directories it’d be really nice to be able to batch update

Re: convert-ly question

2014-05-16 Thread Phil Burfitt
Sorry, correction.. for /F delims= %n in ('dir /b /s *.ly') do convert-ly -e %n Phil. ___ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user

Re: convert-ly question

2014-05-16 Thread Ralph Palmer
Wow! Thanks, Phil! Ralph On Fri, May 16, 2014 at 6:27 PM, Phil Burfitt phil.burf...@talktalk.netwrote: Sorry, correction.. for /F delims= %n in ('dir /b /s *.ly') do convert-ly -e %n Phil. ___ lilypond-user mailing list